Back to Devexpress

GridControl.NewItemRowVisibility Property

xamarin-devexpress-dot-mobile-dot-datagrid-dot-gridcontrol.md

latest2.4 KB
Original Source

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.2.dll

Declaration

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

Property Value

TypeDescription
Boolean

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

|

Remarks

Important

This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

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.

See Also

Rows Overview

GridControl Class

GridControl Members

DevExpress.Mobile.DataGrid Namespace