DataGrid.ColumnFromDisplayIndex Method (Int32)

.NET Framework (current version)
 

Gets the DataGridColumn at the specified index.

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

public DataGridColumn ColumnFromDisplayIndex(
	int displayIndex
)

Parameters

displayIndex
Type: System.Int32

The zero-based index of the column to retrieve.

Exception Condition
ArgumentOutOfRangeException

displayIndex is less than 0, or greater than or equal to the number of columns.

.NET Framework
Available since 4.0
Return to top
Show: