DataGrid.ColumnFromDisplayIndex Method (Int32)

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