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

MetroGrid Control showing class properties that are not explicitly declared as Grid Columns #121

Open
SkyEngine-OSP opened this issue Sep 10, 2019 · 0 comments

Comments

@SkyEngine-OSP
Copy link

SkyEngine-OSP commented Sep 10, 2019

I explicitly defined what columns my MetroGrid should show, i then disabled the .AutoGenerateColumns on Load Event, then passed a .DataSource value to the Grid via a method i defined that triggers on button click. However, i noticed that when i assign the IEnumerable to the MetroGrid's .DataSource property, it shows the Class Property that is not defined as a column.

see below image refs:

Class Design (https://imgur.com/ZObtftR)
Explicitly Defined Grid Columns (https://imgur.com/9hSHWFd)
Grid Columns Displayed on Runtime (https://imgur.com/EMNfb6Y)

i'm using MetroFramework 1.4.0.0 by the way

Edit: a quick workaround i do with it is, i define that extra column that should not appear, then set its Visibility to Hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant