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 know that this event doesn't exist but was wondering when it occurs if that makes sense. When is a row added to the grid and then a databound source. For debugging purposes it would be nice to know.
Right now I believe the event flow is row enter, row leave, row validating, row saved then is it added?
Thanks for your time.
Ben
ADAdministrator Syncfusion Team November 6, 2003 06:15 PM UTC
Here is the event order. (Attached is a little sample that shows this order).
gridDataBoundGrid1_CurrentCellMoving
gridDataBoundGrid1_CurrentCellValidating
gridDataBoundGrid1_RowLeave
gridDataBoundGrid1_RowSaved
gridDataBoundGrid1_RowEnter
gridDataBoundGrid1_CurrentCellMoved
ADAdministrator Syncfusion Team November 6, 2003 06:21 PM UTC
Hi Ben,
I'm using the Binder.EditModeChanged event:
if (this.grid.Binder.IsEditing && this.grid.Binder.IsAddNew )
{
CurrencyManager cm = (CurrencyManager)this.grid.Binder.BindingContext[this.DataSource, this.DataMember];
if( cm.Position != -1 )
{
DataRow addedRow = ((DataRowView)cm.Current).Row;
}
I'm using this code to the default values for a row.
Regards,
Thomas