BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Paul,
Thanks for
the patience.
We have
analyzed your query and we have achieve your requirement by using the following
code snippet.
Code
Snippet[C#]:
this.AssociatedObject.CurrentCellChanged += new Syncfusion.Windows.ComponentModel.GridRoutedEventHandler(AssociatedObject_CurrentCellChanged); void AssociatedObject_CurrentCellChanged(object sender, Syncfusion.Windows.ComponentModel.SyncfusionRoutedEventArgs args) { int rowindex = this.AssociatedObject.Model.CurrencyManager.CurrentCell.RowIndex; int columnindex = this.AssociatedObject.Model.CurrencyManager.CurrentCell.ColumnIndex; var style = this.AssociatedObject.Model[rowindex, columnindex] as GridDataStyleInfo; if (style.CellIdentity.TableCellType == GridDataTableCellType.AddNewRecordCell && columnindex == this.AssociatedObject.Model.ColumnCount - 1) { //you can commit the added new record by using the following code snippet if (this.AssociatedObject.Model.CurrencyManager != null) this.AssociatedObject.Model.CurrencyManager.EndEdit(); } }
|
For your
reference we have prepared a sample based on this and it can be download from
the following location.
Sample
Location: GridDataControl_AddNewRow.zip
Please let
us know if you have any questions.
Regards.,
Rajasekar