AD
Administrator
Syncfusion Team
July 19, 2006 05:16 AM UTC
Hi Gopi,
By calling Table.SelectedRecords.Clear() method after setting the datasource for the grid, resolves this problem.
Change the code as below.
grid.BeginUpdate()
grid.DataSource =null;
grid.DataSource= ds;
grid.Table.SelectedRecords.Clear();
grid.Table.FilteredRecords[0].SetCurrent();
grid.EndUpdate(true);
You can also select the records programatically using the code below.
grid.Table.SelectedRecords.Add( grid.Table.Records[0] );
Let us know if you have any other questions.
Thanks for using Syncfusion Products.
Regards,
Rajagopal