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

Updating GridBoundColumns at runtime

Thread ID:





41216 Feb 24,2006 07:23 PM UTC Feb 28,2006 07:40 AM UTC WinForms 1
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?


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.



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