CurrentItem Property
TOC
Collapse the table of content
Expand the table of content

DataGrid.CurrentItem Property

 

Gets the data item bound to the row that contains the current cell.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public object CurrentItem { get; set; }

Property Value

Type: System.Object

The data item bound to the row that contains the current cell. The registered default is null. For more information about what can influence the value, see DependencyProperty.

This property gets the data item for the row that either has focus, or contains the cell that has focus. It is equivalent to the DataGridCellInfo.Item value returned by the CurrentCell property.

.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Return to top
Show:
© 2016 Microsoft