The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
ADAdministrator 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();