SharedRow Method

DataGridViewRowCollection::SharedRow Method (Int32)

 

Returns the DataGridViewRow at the specified index.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
DataGridViewRow^ SharedRow(
	int rowIndex
)

Parameters

rowIndex
Type: System::Int32

The index of the DataGridViewRow to get.

Return Value

Type: System.Windows.Forms::DataGridViewRow^

The DataGridViewRow positioned at the specified index.

The SharedRow method returns a DataGridViewRow without unsharing the row. If you modify a shared row, all the rows that share that row will be modified.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft