Is there a way to access the "Click here to add new row" in runtime? i want to add a command button for a new record. in the click event, I want to set focus the in the "Click here to add new row" as if the user clicked it manually.?
Thanks
2 Answers, 1 is accepted
0
Accepted
Nikolay
Telerik team
answered on 04 May 2012, 10:39 AM
Hi Emilio,
You can access the new row by getting the TableAddNewRow object from the MasterView of RadGridView:
this.radGridView1.MasterView.TableAddNewRow;
In order to achieve your scenario, you should first make the new row current by setting the CurrentRow of RadGridView to the new row object. Then, most probably, you would want to put RadGridView in edit mode, so the complete code snippet for your case is: