AD
Administrator
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
AD
Administrator
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