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.

Updating GridBoundColumns at runtime

Thread ID:





41216 Feb 24,2006 02:23 PM Feb 28,2006 02:40 AM Windows Forms 1
Tags: GridControl
Ben Carter
Asked On February 24, 2006 02:23 PM

I need to modify the bound columns of a DataBoundGrid at runtime (due to changing the data source binding), but it is not immediately apparent how to achieve this. Attached is a simple example of what I am attempting, several problems can be seen. (some columns are wrong or missing, data is not displayed) What do I need to do to make this work properly?


Administrator [Syncfusion]
Replied On February 28, 2006 02:40 AM

Hi Ben, Set the grid.DataSource to null and change the GridBoundColumns and then set the grid.DataSource to the new data table. Here is the modified sample. Regards, Calvin.



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.