DataGrid::RowHeaderWidth Property
.NET Framework (current version)
Gets or sets the width of row headers.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::Int32The width of row headers in the System.Windows.Forms::DataGrid. The default is 35.
The following code example demonstrates the use of this member.
// Get the width of row header. private: void button9_Click( Object^ /*sender*/, EventArgs^ /*e*/ ) { Int32 myRowHeaderWidth = myDataGrid->RowHeaderWidth; MessageBox::Show( String::Concat( "Width of row headers is: ", myRowHeaderWidth ), "Message", MessageBoxButtons::OK, MessageBoxIcon::Exclamation ); }
.NET Framework
Available since 1.1
Available since 1.1
Show: