DataGridView.TopLeftHeaderCell Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the header cell located in the upper left corner of the DataGridView control.

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

[<BrowsableAttribute(false)>]
member TopLeftHeaderCell : DataGridViewHeaderCell with get, set

Property Value

Type: System.Windows.Forms.DataGridViewHeaderCell

The DataGridViewHeaderCell located at the upper left corner of the DataGridView.

Setting this property allows you to set a value for the cell, associate a shortcut menu with it, or perform any other operations you can perform on a DataGridViewHeaderCell.

In applications designed for use with right-to-left languages, the cell represented by this property is typically in the upper-right corner.

The following code example uses this property to display a value in the upper-left corner of a DataGridView control. This value labels a child table in a master/detail scenario. This example is part of a larger example available in the DataGridViewComboBoxColumn class overview topic.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: