multiline column headers in a windows forms datagrid
-
I know this question has been asked many times and althought I have browsed through several message boards, I can see the question but not the answers. Because of that, I tried to figure out which method or methods the datagrid has to paint the column headers. Using reflection I found out that there are two methods: PaintColumnHeaders and PaintColumnHeaderText. However, this methods are private and can't be overridden or hidden. I can't understand why they made these methods private but anyway, does anyone know how to go around this? also, there is a private method that returns the header rectangle. I was able using the MethodInfo.Invoke method to get this object but I can't do anything with it. I am just learning to use the Reflection namespace I haven't figured out how to deal with this, any ideas?