DataGrid.RowHeaderWidth Property
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); };
C#
public int RowHeaderWidth { get; set; }
member this.RowHeaderWidth : int with get, set
Public Property RowHeaderWidth As Integer
The width of row headers in the 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 );
}
C#
// 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
Produkt | Versionen |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0 |
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Feedback zu .NET
.NET ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: