DataGridView
docs should mention MappingType.Hidden
#1516
Labels
doc-enhancement
Improve the current content [org][type][category]
dotnet-framework/svc
Pri3
Low priority
winforms/subsvc
I was looking for a good way to exclude a
DataColumn
when theDataGridView
is autogenerating itsDataGridViewColumn
s. I somehow stumbled upon a way to do it: just setting theDataColumn.ColumnMapping = MappingType.Hidden
does exactly what I wanted.I think this should be mentioned at least on the How to: Remove Autogenerated Columns from a Windows Forms DataGridView Control, better yet also in the How to: Autogenerate Columns in a Data-Bound Windows Forms DataGridView Control, and even better throughout the
DataGridView
docs.Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: