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.
Unfortunately, activation email could not send to your email. Please try again.

Problem with binder.layoutcolumns

Thread ID:

Created:

Updated:

Platform:

Replies:

26307 Mar 19,2005 01:41 AM Mar 19,2005 04:48 AM Windows Forms 1
loading
Tags: GridControl
Vamsi Krishna
Asked On March 19, 2005 01:41 AM

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.

Administrator [Syncfusion]
Replied On 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) cm.Refresh();

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;