DataGrid::HitTestInfo::ToString Method ()
.NET Framework (current version)
Gets the type, row number, and column number.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The following example prints the type, row number, and column number when the user clicks the System.Windows.Forms::DataGrid.
private: void dataGrid1_MouseDown( Object^ /*sender*/, System::Windows::Forms::MouseEventArgs^ e ) { System::Windows::Forms::DataGrid::HitTestInfo^ myHitTest; // Use the DataGrid control's HitTest method with the x and y properties. myHitTest = dataGrid1->HitTest( e->X, e->Y ); Console::WriteLine( "ToString {0}", myHitTest->ToString() ); }
.NET Framework
Available since 1.1
Available since 1.1
Show: