DataGridViewCellCollection::IndexOf Method (DataGridViewCell^)
.NET Framework (current version)
Returns the index of the specified cell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- dataGridViewCell
-
Type:
System.Windows.Forms::DataGridViewCell^
The cell to locate in the collection.
Return Value
Type: System::Int32The zero-based index of the value of dataGridViewCell parameter, if it is found in the collection; otherwise, -1.
.NET Framework
Available since 2.0
Available since 2.0
Show: