AddNewRow allows you to add rows in the runtime to enter new records in the DataGrid control. By default, SfDataGrid does not set any default value for columns in the AddNewRow. However, the SfDataGrid allows you to set some initial values for AddNewRow by clicking in the AddNewRow and handling the AddNewRowInitiating event that is triggered when you start editing in AddNewRow. By handling this event, you can add custom values for the AddNewRow columns in the DataGrid.
The following code example demonstrates how to add initial values to AddNewRow by handling the AddNewRowInitiating event.
The following screenshot shows the output of the above code. The AddNewRow is initiated with some default values.
This page will automatically be redirected to the sign-in page in 10 seconds.