DataGridView.FirstDisplayedScrollingColumnIndex 属性

定义

获取或设置某一列的索引,该列是显示在 DataGridView 上的第一列。Gets or sets the index of the column that is the first column displayed on the DataGridView.

public:
 property int FirstDisplayedScrollingColumnIndex { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public int FirstDisplayedScrollingColumnIndex { get; set; }
member this.FirstDisplayedScrollingColumnIndex : int with get, set
Public Property FirstDisplayedScrollingColumnIndex As Integer

属性值

某一列的索引,该列是显示在 DataGridView 上的第一列。The index of the column that is the first column displayed on the DataGridView.

属性

异常

当设置此属性时,指定的值小于 0 或大于控件中的列数减 1。The specified value when setting this property is less than 0 or greater than the number of columns in the control minus 1.

当设置此属性时,指定的值指示具有 falseVisible 属性值的列。The specified value when setting this property indicates a column with a Visible property value of false.

-or- 当设置此属性时,指定的值指示具有 trueFrozen 属性值的列。The specified value when setting this property indicates a column with a Frozen property value of true.

适用于

另请参阅