If you are adding the columns yourself... don't add the columns you don't want.
If you have AutoCreateColumns
enabled, then:
[Browsable(false)]
to properties you don't want.Visible
to falseFrom Is there an Attribute I can use in my class to tell DataGridView not to create a column for it when bound to a List<MyClass>
[Browsable(false)]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With