4
Answers

Override private method? Reflection? Please Help!

Ask a question
Matt

Matt

17y
8.1k
1

Hi,

I am trying to override a private method and to make things worse, the call is buried in another private method (several actually). Specifically, I have a custom DataGrid class (inheriting DataGrid) and I want to somehow get to the PaintColumnHeaderText(Graphics g, Rectangle boundingRect) method. My goal is to change the bounding rectangle's position to vertically align the headers.

any help is appreciated! ^_^

-Matt


Answers (4)