Open topic with navigation

SelectColumn Method (IDataGridView)
Selects (clicks) the specified column header in this grid.

This method has multiple overloads.

In this topic:

## SelectColumn(Int32) Method

Selects (clicks) the specified column header in this grid.

C# Syntax

    void SelectColumn(
       int column
    )

Parameters

column
  0-based column index.

## SelectColumn(String) Method

Clicks the specified column header in this grid.

C# Syntax

    void SelectColumn(
       string columnHeader
    )

#### Parameters

columnHeader
  The column caption.