This is a migrated thread and some comments may be shown as answers.

Programatically cancel an insert

1 Answer 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 22 Nov 2016, 03:22 PM

Is there a way to fully cancel a user insert of a new row programatically?

I am looking to simulate the user hitting the esc key once initiating an insert of a new row.

Thanks,

 

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 22 Nov 2016, 05:41 PM
Hello Mark,

Thank you for writing.

You can subscribe the grid to its UserAddingRow and cancel it. Please check the following documentation article for an example: http://docs.telerik.com/devtools/winforms/gridview/rows/new-row#user-events

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik by Progress
Telerik UI for WinForms is ready for Visual Studio 2017 RC! Learn more.
Tags
GridView
Asked by
Mark
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or