The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
My usage is to use GridDataControl to be bound to Sql Datasource, Listen row edit events and update the Database, Create a new row and update and delete particular.
I didnt find a Event to listen on GridDataControl.
I have been hearing abt the CellChange Event, but it didnt exist in this version.
How should I use the GridDataControl for my purpose.
We would like to work with GridDataControl in Silverlight. (The Usage similar to ASP.NET's DataGrid Control) Should be able to Update, Insert and delete rows. We bought this product for this purpose. And, I havent seen enough functions in GridDataControl to implement this CRUD Operations.
I appreciate your quick response.
Thanks.
BKBalaji K Syncfusion Team October 11, 2010 05:20 AM UTC
Hi Hema,
Thanks for your patience.
The CRUD operations are supported by GridDataControl in Silverlight. The following events help you achieve the requirement.
#Create "RowsInserted" event is triggered when a record is added. [Code Snippet] this.dataGrid.Model.RowsInserted
#Update "OnEndEdit" event is triggered when a record is updated. [Code Snippet] this.dataGrid.Model.CurrencyManager.OnEndEdit
#Delete "RowsRemoved" event is triggered when a record is removed. [Code Snippet] this.dataGrid.Model.RowsRemoved
[Code Snippet] this.dataGrid.ModelLoaded += ((s, e) => { this.dataGrid.Model.CurrencyManager.OnEndEdit += new EventHandler(CurrencyManager_OnEndEdit); this.dataGrid.Model.RowsInserted += new Windows.Controls.Grid.GridRangeInsertedEventHandler(Model_RowsInserted); this.dataGrid.Model.RowsRemoved += new Windows.Controls.Grid.GridRangeRemovedEventHandler(Model_RowsRemoved); });