DataGridView.FirstDisplayedScrollingRowIndex 属性

定义

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

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

属性值

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

属性

异常

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

当设置此属性时,指定的值指示具有 falseVisible 属性值的行。The specified value when setting this property indicates a row 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.

注解

设置此属性将引发 Scroll 事件。Setting this property raises the Scroll event.

适用于

另请参阅