TelerikDeveloper.com

TelerikDeveloper.com

sgray128 3/20/2013 10:38:29 AM

Telerik - Winforms - Cancel a grid new row

Sometimes I'm in the Telerik Winform RadGrid AddingNewRow event and I need to completely cancel the new row.

e.Cancel only cancels the add, the new row is still populated.

The code sample below will do the trick.



Me.RadGridView1.CancelEdit()
Me.RadGridView1.MasterView.TableAddNewRow.CancelAddNewRow()