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.

Binding Datatable to Grouping Grid

Thread ID:





71768 Feb 12,2008 10:07 AM Feb 12,2008 12:57 PM Windows Forms 1
Tags: Grouping
Navaneeth Rajkumar
Asked On February 12, 2008 10:07 AM

I have attached a datatable to the grid grouping control.

grdcontrol.DataSource = m_datatable;

When the data on the grid changes, the datatable doesnt get updated. Which property should be set/called to updated the datatable when the grid changes?


Vinoth Kumar K [Syncfusion]
Replied On February 12, 2008 12:57 PM

Hi Navaneeth,

Thanks for using Syncfusion Products.

By default, the grid datas should be updated to underlying datasource as you leave the row (not the cell). If you want the grid values updated as you leave the cell , you can add a CurrentRecordContextChange event handler, and call the Table.EndEdit method for the related table. This will update the underlying datasource if any changes is detected. Also you need to set the Table.TableDirty = true. This property indicates to the engine that it needs to re-categorize elements when the underlying datasource is updated. Below are the codes that shows this task.

private void grid1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
if(e.Action == CurrentRecordAction.CurrentFieldChanged
|| e.Action == CurrentRecordAction.EndEditComplete )
e.Table.TableDirty = true;

Please try these code and let me know if this helps.

Best regards,


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.