Sipo Sipo -4 years ago 137
C# Question

Datagrid `TopLeftHeaderCell` is missing from the properties panel

I am looking for the

TopLeftHeaderCell
property of my
DataGridView
and it is missing from the designer:

Properties panel in Visual Studio without the property

However, when I set it in the code, it works perfectly. So what is wrong?

Answer Source

If you look at the source code or the documentation, you see that the property has the attribute [BrowsableAttribute(false)] set.

[BrowsableAttribute(false)]
public DataGridViewHeaderCell TopLeftHeaderCell { get; set; }

This specifically prevents the Designer from showing this property.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download