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

add aditional column

Thread ID:





31640 Jul 12,2005 08:04 AM UTC Jul 12,2005 08:53 AM UTC WinForms 1
Tags: GridControl
Hrvoje Voda
Asked On July 12, 2005 08:04 AM UTC

When I fill a grid with data from dataset, and then I want to add some more data, and ofcourse in new columns, grid erase my previous data and put that new data instead. Why? How can I prevent this?

Administrator [Syncfusion]
Replied On July 12, 2005 08:53 AM UTC

Are you trying to add new columns to your DataTable that is the grid''s DataSource? Or, are you trying to add unbound columns where the data does not come from the DataTable that is the grid''s DataSource? Here is button handler code that does adds a column to an existing DataTable.
private void button1_Click(object sender, System.EventArgs e)
	//dt is the grid''s DataSource
To use an unbound column, you add a GridBoundColumn with a name that is not a column in the DataSource. Then you handle QueryCellInfo and SaveCellInfo to provide and save teh unbound values for this column. This sample has unbound columns in it. \Syncfusion\Essential Studio\\Windows\Grid.Windows\Samples\DataBound\GDBGMultiHeader


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