GridControl.NewItemRowVisibility Property

Gets or sets whether the New Item Row is shown in the grid to allow end-users to enter new data records. This is a bindable property.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.1.dll

Declaration

[XtraSerializableProperty]
public bool NewItemRowVisibility { get; set; }
<XtraSerializableProperty>
Public Property NewItemRowVisibility As Boolean

Property Value

Type Description
Boolean

true, to display the new item row; otherwise, false.

If the NewItemRowVisibility property is set to true, the New Item Row is shown above grid's rows. When an end-user taps it, a row editor (an in-place editor or edit form, depending on the row edit mode set in the grid) is invoked. After an end-user sets required cell values in this editor and taps Apply (or Done), a new row is added.

To set the default values for a new row, handle the GridControl.InitNewRow event.

Grid_GettingStarted_Lesson3_Result_iPad

Grid_GettingStarted_Lesson3_Result_Android_Dark

See Also