DataGridCellInfo Constructors

Definition

Initializes a new instance of the DataGridCellInfo structure.

Overloads

DataGridCellInfo(DataGridCell)

Initializes a new instance of the DataGridCellInfo structure for the specified cell.

DataGridCellInfo(Object, DataGridColumn)

Initializes a new instance of the DataGridCellInfo structure using the specified data item and column.

DataGridCellInfo(DataGridCell)

Initializes a new instance of the DataGridCellInfo structure for the specified cell.

C#
public DataGridCellInfo(System.Windows.Controls.DataGridCell cell);

Parameters

cell
DataGridCell

The cell for which information is to be generated.

Remarks

This constructor associates the DataGridCellInfo with the specific DataGrid instance that owns the cell container.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

DataGridCellInfo(Object, DataGridColumn)

Initializes a new instance of the DataGridCellInfo structure using the specified data item and column.

C#
public DataGridCellInfo(object item, System.Windows.Controls.DataGridColumn column);

Parameters

item
Object

The data item for the row that contains the cell.

column
DataGridColumn

The column that contains the cell.

Remarks

This constructor does not associate the DataGridCellInfo with a specific DataGrid instance.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10