AD
Administrator
Syncfusion Team
December 8, 2004 06:49 AM UTC
You probably have 2 grids linked to the same DataSource using the same CurrencyManager.
If the grids are using the same CurrencyManager (BindingContext), then any change to one one CurrencyManager (like a sort) will be reflected in the other.
After you have created the grid and added it to the RecNavControl, try setting
grid.BindingContext = new BindingContext();
This should make sure each grid is using a different BindingContext object.
Another solution would be to create a new DataView object for each DataSource. So, if you are using a DataTable dt as the DataSource, you could try using:
grid.DataSource = new DataView(dt);
This should also prevent sorting/filtering one grid affecting the other.