i have 2 grids (Header and Detail). For each row in header grid the table/columns of detail grid will change.
i.e Some times COL1 and COl2 of one table1 and COL1 and COl2 of another table2 has to be displayed in detail grid.
I have used binder.layoutcolumns to filter columns.
It works fine if i alternatively show the table1 and table2 data. I am having a problem if have to show the same table data.
Thanks in advance.
ADAdministrator Syncfusion Team March 19, 2005 04:48 AM
I am not sure I understand.
Are you trying to dynamically change the datasource in the second grid as you click rows in the first grid?
And things work if the datasource in the second grid is actually changed (the new datasource is different than the old datasource) as you click rows in the first grid, but something is wrong when the new datasource is teh same as the old datasource? Exactly what is wrong?
Anyway, you might try calling CurrencyManager.Refresh on the currencymanager for the second grid after you have changed its datasource.
Dim cm as CurrencyManager = me.grid2.BindingContext(grid2.DataSource, grid2.DataMember)