clear All cells of new Added Row

1 Answer 130 Views
GridView
Kapil
Top achievements
Rank 1
Iron
Kapil asked on 25 May 2021, 11:42 AM
I have a Radgridview in which add new row is enabled and I want to clear all the cells of that adding row area when programmatically I m in the userAddingRow method

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 25 May 2021, 01:31 PM

Hello, Kapil,

In general, the end-user can cancel adding or editing a row by pressing the escape key. In order to programmatically clear the cell values when you are adding a new row you can call the CancelAddNewRow method as shown below:

this.radGridView1.MasterView.TableAddNewRow.CancelAddNewRow();

Thus, the entered cell values would be cleared and no changes would be submitted.

I hope this helps. Let me know if you have any additional questions.

Regards,
Nadya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
Kapil
Top achievements
Rank 1
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or