DataGrid.RowHeaderWidth Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the width of row headers.
public:
property int RowHeaderWidth { int get(); void set(int value); };
public int RowHeaderWidth { get; set; }
member this.RowHeaderWidth : int with get, set
Public Property RowHeaderWidth As Integer
Property Value
The width of row headers in the DataGrid. The default is 35.
Examples
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 );
}
// Get the width of row header.
private void button9_Click(object sender, EventArgs e)
{
Int32 myRowHeaderWidth = myDataGrid.RowHeaderWidth;
MessageBox.Show("Width of row headers is: "+
myRowHeaderWidth.ToString(), "Message",
MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
}
' Get the width of row header.
Private Sub button9_Click(ByVal sender As Object, ByVal e As EventArgs) Handles button9.Click
Dim myRowHeaderWidth As Int32 = myDataGrid.RowHeaderWidth
MessageBox.Show("Width of row headers is: " + myRowHeaderWidth.ToString(), "Message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
End Sub
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro