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

Add a column to GridDataBoundGrid at runtime?

Thread ID:





22400 Dec 11,2004 12:00 PM UTC Dec 11,2004 02:07 PM UTC WinForms 2
Tags: GridControl
Asked On December 11, 2004 12:00 PM UTC

Some columns are added at runtime to the GridDataBoundGrid, but the last column is never displayed, and data is never filled,i.e., cells are left empty. Its DataSource is a DataTable, of which data is correct, and the number of columns in the Grid is right. Please help me, many thanks!

Administrator [Syncfusion]
Replied On December 11, 2004 12:25 PM UTC

After adding the column to the datasource, try calling grid.Binder.InitializeColumns.

Replied On December 11, 2004 02:07 PM UTC

oh, you are toooooo helpful! Really thanks!


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