Skip to main content

TableView.AddNewRow() Method

Adds a new record.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v14.2.dll

Declaration

public void AddNewRow()
Public Sub AddNewRow

Remarks

Use the AddNewRow method to add a new record to the View's underlying datasource. The View immediately reflects any changes made to the datasource and focuses the new record.

The AddNewRow method is only available for datasources which support the following interfaces:

  • IBindingList
  • ICollectionView
  • ObservableCollection

When a new record is added, the datasource may initialize some values (key fields, for instance). Record initialization can also be performed manually by handling the TableView.InitNewRow event.

An end-user can add new records via the New Item Row.

See Also