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 Edit Cell in GridDataControl

Thread ID:





96735 Oct 1,2010 02:11 PM UTC Oct 12,2010 11:32 AM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Hema Gunda
Asked On October 1, 2010 02:11 PM UTC


I just started using Syncfusion V8.2.0.18.

My usuage is to Use GridDataControl to bind to the Sql Datasource, Edit the Cell and Save it to the Database, Insert a new record and Save it to the Database.

I couldnt find any rowedit events.

How should I use the GridDataControl?

I appreciate your time and quick response.


Jeraldes J [Syncfusion]
Replied On October 12, 2010 11:32 AM UTC

Hi Hema,

Thank you for your interest in Syncfusion products.

We would be glad to assist you on this query.

1.Edit Operation

The GridDataControl is bound to an Entity model the changes made in the Grid has to be updated to the Entity model by listening to the EndEdit event of the currency manager. The save will be handled automatically when the cell is out of edit mode.

[Code Snippet]

this.dataGrid.Model.CurrencyManager.OnEndEdit += ((s, e) =>
//Save handled

2.Delete operation

The Delete operation can be triggered from the collection changed event as follows.

[Code Snippet]

this.dataGrid.Model.View.CollectionChanged += ((s, e) =>
//Delete handled
if (e.Action == NotifyCollectionChangedAction.Remove)
foreach (var item in e.OldItems)

Please refer the sample in the following location.


Sample Usage:
Change the field values or delete a record in the GridDataControl and click the "Load Data in SDK Grid" button to load the updated data to the SDK grid.

Let us know if this helps.

Jeraldes J


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