DataGridViewRowCollection.SharedRow(Int32) 方法

定義

傳回指定索引處的 DataGridViewRow

public:
 System::Windows::Forms::DataGridViewRow ^ SharedRow(int rowIndex);
public System.Windows.Forms.DataGridViewRow SharedRow (int rowIndex);
member this.SharedRow : int -> System.Windows.Forms.DataGridViewRow
Public Function SharedRow (rowIndex As Integer) As DataGridViewRow

參數

rowIndex
Int32

要取得之 DataGridViewRow 的索引。

傳回

DataGridViewRow

位於指定索引處的 DataGridViewRow

備註

方法會 SharedRow 傳回 , DataGridViewRow 而不取消共用資料列。 如果您修改共用資料列,將會修改共用該資料列的所有資料列。

適用於

另請參閱