GridControl.InitNewRow Event

Allows you to initialize a new row with default values.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v20.1.dll


public event InitNewRowEventHandler InitNewRow
Public Event InitNewRow As InitNewRowEventHandler

Event Data

The InitNewRow event's data class is InitNewRowEventArgs. The following properties provide information specific to this event:

Property Description
RowHandle Gets the handle of the added row.


When an end-user starts to edit the New Item Row, the InitNewRow event is raised. You can handle this event to initialize the required fields within the new record. To do this, obtain the row using the GridControl.GetRow method, cast it to the data item type and set the data property values.

See Also