What method can I override in GridViewHeaderRowPresenter to prevent it from drawing some columns?
Posted
by Carlo
on Stack Overflow
See other posts from Stack Overflow
or by Carlo
Published on 2010-03-25T22:43:20Z
Indexed on
2010/03/25
23:23 UTC
Read the original article
Hit count: 232
wpf
|wpf-controls
The thing is that I created a custom column that inherits from GridViewColumn, and I added a Visibility dependency property to it. Now I want to create a custom GridViewHeaderRowPresenter, that does not draw the columns when their visibility is hidden or collapsed, but other than the OnRender() method, I can't think of anything else.
Thanks.
Btw, the reason I'm doing this is because removing or adding columns doesn't work like we would expect it (some specs for our app) and I believe what I'm trying to do here would work if pulled out correctly.
© Stack Overflow or respective owner