We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Problem with binder.layoutcolumns

Hi, 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. I tried .Binder.InitializeColumns() .Binder.InternalColumns.Clear() 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. Regards, Vamsi.

1 Reply

AD Administrator Syncfusion Team March 19, 2005 09:48 AM UTC

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) cm.Refresh();

Live Chat Icon For mobile
Up arrow icon