DataGridView::HitTestInfo::ColumnIndex Property
.NET Framework (current version)
Gets the index of the column that contains the coordinates described by the current DataGridView::HitTestInfo.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::Int32The index of the column in the DataGridView that contains the coordinates described by the current DataGridView::HitTestInfo.
The following code example illustrates the use of this property. This example is part of a larger example available in the DataGridView::Columns property reference topic.
.NET Framework
Available since 2.0
Available since 2.0
Show: