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 ?

Platform: WinForms |
Control: GridGroupingControl |
Published Date: January 3, 2016 |
Last Revised Date: September 24, 2016

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

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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