DataGrid::CurrentItem Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public:
property Object^ CurrentItem {
	Object^ get();
	void set(Object^ value);
}

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: