Back to Devexpress

InitNewRowEventArgs.RowHandle Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-initnewroweventargs.md

latest2.7 KB
Original Source

InitNewRowEventArgs.RowHandle Property

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

Declaration

csharp
public int RowHandle { get; }
vb
Public ReadOnly Property RowHandle As Integer

Property Value

TypeDescription
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

csharp
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

vb
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

InitNewRowEventArgs Class

InitNewRowEventArgs Members

DevExpress.XtraGrid.Views.Grid Namespace