Skip to main content
A newer version of this page is available. .

GridView.AddNewRow() Method

Adds a new record to this GridView.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v17.2.dll

Declaration

public override void AddNewRow()

Remarks

The AddNewRow method adds a new grid row at runtime. This method does not depend on the current ColumnViewOptionsBehavior.AllowAddRows property value. At design-time, you can add new rows by using the Data Navigator or Edit Form.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AddNewRow() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also