Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataGridView docs should mention MappingType.Hidden #1516

Open
TymurGubayev opened this issue Sep 29, 2022 · 1 comment
Open

DataGridView docs should mention MappingType.Hidden #1516

TymurGubayev opened this issue Sep 29, 2022 · 1 comment
Labels
doc-enhancement Improve the current content [org][type][category] dotnet-framework/svc Pri3 Low priority winforms/subsvc

Comments

@TymurGubayev
Copy link

I was looking for a good way to exclude a DataColumn when the DataGridView is autogenerating its DataGridViewColumns. I somehow stumbled upon a way to do it: just setting the DataColumn.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.

@adegeo
Copy link
Contributor

adegeo commented Oct 19, 2022

Thank you for opening this issue. I'll add it to the backlog. If you would like to contribute, you can submit a fix by editing the original article. Click on the Content Source link at the bottom of your original comment. To learn how to edit, see the Editing files in a repository article from GitHub.

Thanks again!

@adegeo adegeo added the doc-enhancement Improve the current content [org][type][category] label Oct 19, 2022
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Oct 19, 2022
@adegeo adegeo added Pri3 Low priority and removed Pri2 Medium priority labels Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Improve the current content [org][type][category] dotnet-framework/svc Pri3 Low priority winforms/subsvc
Projects
None yet
Development

No branches or pull requests

3 participants