Skip to content

How to filter the NT8PropertyGrid Control view #64

Answered by jeronymite
MicroTrendsTom asked this question in Q&A
Discussion options

You must be logged in to vote

The PropertyGrid has arrays of Categories and Properties. For example, for a declared PropertyGrid "pgrid", use pgrid.Categories and pgrid.Properties. Each of the Categories and Properties in those arrays has a boolean property of IsExpanded, which can be read or set.

Having identified the Categories and Properties that correspond with individual tabs/buttons, simply cycle through all Categories and Properties and set IsExpanded to true for the ones you want to focus on and false for those you do not want to focus on. As you probably already know, you can create Categories for your Properties using [Display(GroupName = AnyGroupNameYouWant)] in your PropertyGrid class.

You may also find th…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@MicroTrendsTom
Comment options

Comment options

You must be logged in to vote
1 reply
@MicroTrendsTom
Comment options

Answer selected by MicroTrendsTom
Comment options

You must be logged in to vote
1 reply
@MicroTrendsTom
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants