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

Problem with binder.layoutcolumns

Thread ID:





26307 Mar 19,2005 06:41 AM UTC Mar 19,2005 09:48 AM UTC WinForms 1
Tags: GridControl
Vamsi Krishna
Asked On March 19, 2005 06:41 AM UTC

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 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();


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon