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.
I'm using the GridDataBoundGrid and would like to figure out how one is one able to force an update to the datasource after editing a cell. The ListChangedEvent is fired after editing a cell then moving to a cell of any other row, but I would like it to fire after moving to any other cell including those in the same row. I'm assuming that there may be a cell event to subscribe to, but not sure which is the best to use. Also, are there any other alternatives to cell events?
ADAdministrator Syncfusion Team November 9, 2006 08:59 AM UTC
Hi Nathan,
To push all data to underlying datasource for every cell movement, you need to call in Binder.EndEdit Method(before calling this , you need to call the CurrentCell''s Edit method). Here is a code snippet.
this.grid.CurrentCell.EndEdit(); //saves the currentcell this.grid.Binder.EndEdit(); //removes the pencil
Best Regards, Haneef
NAnathanNovember 9, 2006 05:19 PM UTC
...And just so I'm clear, this can be done by subscribing to the CurrentCellEditingComplete event? Or, is there another event to subscribe to?
Thanks for the help!
Nathan
ADAdministrator Syncfusion Team November 10, 2006 04:48 AM UTC
Hi Nathan,
You can use the CurrentCellMoving event handler to update all data to underlying datasource for every cell movement