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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Updating GridBoundColumns at runtime

Thread ID:

Created:

Updated:

Platform:

Replies:

41216 Feb 24,2006 07:23 PM UTC Feb 28,2006 07:40 AM UTC WinForms 1
loading
Tags: GridControl
Ben Carter
Asked On February 24, 2006 07:23 PM UTC

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?

form13.zip

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

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.

Form1Modified.zip

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.

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

;