Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
15360 | Jun 16,2004 05:14 PM UTC | Jun 16,2004 09:55 PM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
private void button1_Click(object sender, System.EventArgs e)
{
Console.WriteLine(dt.Rows.Count);
this.gridDataBoundGrid1.DeleteRecordsAtRowIndex(1,1);
Console.WriteLine(dt.Rows.Count);
}
dt is a DataTable that I had set to be the grid''s DataSource in formload. With this code I do not see a problem (using 2.0.5.1).
Can you tell me how to see this problem in one of our samples, or can you post a sample project showing the problem?
this.gridDataBoundGrid1.Binder.SetDataBinding(ds.Tables[dt.TableName], null);
You can set
gridEvents.DataSource = this.CaseDataSet.dsTimelineDatabase.CaseFact;
and this would be what I tried first.
Can you post a sample project that does not work?
Is it possible the table you are removing rows from is different from the table you are checking the rowcount on? This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.