[Browsable(false)]
will hide a property from a DataGridView
.
A visual designer typically displays in the Properties window those
members that either have no browsable attribute or are marked with the
BrowsableAttribute constructor’s browsable parameter set to true.
These members can be modified at design time. Members marked with the
BrowsableAttribute constructor’s browsable parameter set to false are
not appropriate for design-time editing and therefore are not
displayed in a visual designer. The default is true.