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

How to refresh the data in grid while updating a record in underlaying Data Table ?

Problem

By default, GridGroupingControl, the data will be reflected as it is in datasource. If any record or cell value is changed in underlying datasource, it will not be reflected in grid immediately.

Solution

In order to update the record while updating the values in underlying datasource, the underlying datasource has to be refreshed while updating the data. Here is the sample which explains the updating the datasource (DataTable). For DataTable, AcceptChanges() method is used to refresh the data.

C#

 

 

VB

 

Screensots

Before

C:\Users\mohanraj.gunasekaran\Pictures\Refresh1.png

After

C:\Users\mohanraj.gunasekaran\Pictures\Refresh2.png

Sample:

C# : Refresh_CS

VB : Refresh_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
5938 01/03/2016 09/24/2016 WinForms GridGroupingControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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