DataGridView.NewRowIndex 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得新記錄之數據列的索引。
public:
property int NewRowIndex { int get(); };
[System.ComponentModel.Browsable(false)]
public int NewRowIndex { get; }
[<System.ComponentModel.Browsable(false)>]
member this.NewRowIndex : int
Public ReadOnly Property NewRowIndex As Integer
屬性值
新紀錄的列索引,或 -1 如果 AllowUserToAddRows 是 false。
- 屬性
備註
除非 AllowUserToAddRows , false否則此性質的值等於控制項中的行數減 1。