I did it already like that, but the problem is that it's really not a nice
solution: It draws the 'normal' column headers each time, and after half a
second it draws my custom column headers. This happens each time the grid is
refreshed or when there is clicked on the column-headers...
Isn't there a way to prevent things ike that? For instance some function
that repaints the control in memory, and shows it when everything is
complete (and my custom column headers are already put before the
original)... Isn't there some kind of function like this that tells the
datagrid to wait to do the updates just until it has the permission?
"Ross Presser" <rp******@NOSPAMgmail.com.invalid> wrote in message
news:sw*****************************@40tude.net...
On Thu, 7 Jul 2005 09:19:19 +0200, DraguVaso wrote:
Hm wel ok, it's really nice, but I'm afraid it won't help me doing what
I want to do :-/ It uses functions that are private declared in the
datagrid, so I can't use them in my inherited datagrid. Anybody has a solution?
There's nothing preventing you from calling Mybase.OnPaint yourself:
Protected Overrides Sub OnPaint( _
ByVal pe As System.Windows.Forms.PaintEventArgs)
' call the parent
MyBase.OnPaint(pe)
' now do some more stuff
End Sub