DataGrid::RowHeaderWidth Property

 

Gets or sets the width of row headers.

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

public:
property int RowHeaderWidth {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

The 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
Return to top
Show: