System.Windows.Forms.DataGridViewRowCollection.SharedRow Method

Returns the System.Windows.Forms.DataGridViewRow at the specified index.

Syntax

public DataGridViewRow SharedRow (int rowIndex)

Parameters

rowIndex
The index of the System.Windows.Forms.DataGridViewRow to get.

Returns

The System.Windows.Forms.DataGridViewRow positioned at the specified index.

Remarks

The DataGridViewRowCollection.SharedRow(int) method returns a System.Windows.Forms.DataGridViewRow without unsharing the row. If you modify a shared row, all the rows that share that row will be modified.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0