Skip to main content

GridControl.InitNewRow Event

Allows you to initialize a new row with default values.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

public event InitNewRowEventHandler InitNewRow

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.

Remarks

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