DataGrid.CurrentCell Property

.NET Framework (current version)
 
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 or sets the cell that has focus.

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

Public Property CurrentCell As DataGridCellInfo

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
Show: