In the SfDataGrid, AddNewRow allows you to add the new data row in the UI by entering new records. By default, the new row is added at the end, otherwise it is added based on the sorted data position when LiveUpdateMode is set as AllowDataShapping.
The following screenshot shows the default view of AddNewRow in the SfDataGrid.
Figure 1 : Default view AddNewRow
When adding a new row, you can commit the new row by pressing the Enter key and cancel committing the new row by pressing the ESC key twice.
You can perform these operations programmatically in run time also.
The following code example illustrates how to cancel the new row being committed by calling AddNewRowController.CancelAddNew method.
Similarly, you can also commit the new row programmatically using CommitAddNew method.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|