windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-initnewroweventargs.md
Gets the handle of the added row.
Namespace : DevExpress.XtraGrid.Views.Grid
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public int RowHandle { get; }
Public ReadOnly Property RowHandle As Integer
| Type | Description |
|---|---|
| Int32 |
An integer value representing the handle of the added row.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RowHandle property.
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.
winforms-grid-initialize-new-item-row-on-start-editing/CS/WindowsApplication73/Form1.cs#L23
GridView view = sender as GridView;
view.SetRowCellValue(e.RowHandle, view.Columns["Name"], "Noname");
view.SetRowCellValue(e.RowHandle, view.Columns["Date"], DateTime.Today);
winforms-grid-initialize-new-item-row-on-start-editing/VB/WindowsApplication73/Form1.vb#L18
Dim view As GridView = TryCast(sender, GridView)
view.SetRowCellValue(e.RowHandle, view.Columns("Name"), "Noname")
view.SetRowCellValue(e.RowHandle, view.Columns("Date"), Date.Today)
See Also