Drawing column headers...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I'm creating a control very similar to the ListView in Details mode. I'm confused as to how to go about drawing the column headers at the top

As the column headers are static and stay in one position (hence, they do not need to be scrolled by the system when the AutoScrollPosition is changed), I do not want to draw them each time the control needs to be repainted or the user scrolls down.

The only way I can think of to do this right now is to create a top-docked panel and use this panel to draw the columns on. However, I'd like to stay away from using any controls and write this control from scratch.

Any ideas

Thanks

Yaron
 
Hi,

Is this in a web form?

Ian

Yaron said:
Hi,

I'm creating a control very similar to the ListView in Details mode. I'm
confused as to how to go about drawing the column headers at the top.
As the column headers are static and stay in one position (hence, they do
not need to be scrolled by the system when the AutoScrollPosition is
changed), I do not want to draw them each time the control needs to be
repainted or the user scrolls down.
The only way I can think of to do this right now is to create a top-docked
panel and use this panel to draw the columns on. However, I'd like to stay
away from using any controls and write this control from scratch.
 
No, regular windows form

Yaro

----- Ian Frawley wrote: ----

Hi

Is this in a web form

Ia

Yaron said:
not need to be scrolled by the system when the AutoScrollPosition i
changed), I do not want to draw them each time the control needs to b
repainted or the user scrolls downpanel and use this panel to draw the columns on. However, I'd like to sta
away from using any controls and write this control from scratch
 
Ah right

I have done this in a web for it might be similar.

I'll post if your interested.

Ian
 
Back
Top