DataGrid.CurrentCell Property

.NET Framework (current version)

Gets or sets the cell that has focus.

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

member CurrentCell : DataGridCellInfo with get, set

Property Value

Type: System.Windows.Controls.DataGridCellInfo

Information about the cell that has focus.

The value returned is a structure that provides information about the cell and the data item associated with the cell. It is not an actual reference to the DataGridCellcontainer.

To set properties on the selected cells, you can set a trigger in the CellStyle property. For more information, see CellStyle.

.NET Framework
Available since 4.0
Return to top