DataGrid.ColumnFromDisplayIndex(Int32) Method

Definition

Gets the DataGridColumn at the specified index.

public:
 System::Windows::Controls::DataGridColumn ^ ColumnFromDisplayIndex(int displayIndex);
public System.Windows.Controls.DataGridColumn ColumnFromDisplayIndex (int displayIndex);
member this.ColumnFromDisplayIndex : int -> System.Windows.Controls.DataGridColumn
Public Function ColumnFromDisplayIndex (displayIndex As Integer) As DataGridColumn

Parameters

displayIndex
Int32

The zero-based index of the column to retrieve.

Returns

The DataGridColumn at the specified DisplayIndex.

Exceptions

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

Applies to