PC Review


Reply
Thread Tools Rate Thread

Drawing column headers...

 
 
=?Utf-8?B?WWFyb24=?=
Guest
Posts: n/a
 
      5th Mar 2004
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
 
Reply With Quote
 
 
 
 
Ian Frawley
Guest
Posts: n/a
 
      5th Mar 2004
Hi,

Is this in a web form?

Ian

"Yaron" <amberite_@hotmail.com> wrote in message
news:B5E6EB9D-227A-42EF-A5A4-(E-Mail Removed)...
> 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



 
Reply With Quote
 
=?Utf-8?B?WWFyb24=?=
Guest
Posts: n/a
 
      5th Mar 2004
No, regular windows form

Yaro

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

Hi

Is this in a web form

Ia

"Yaron" <amberite_@hotmail.com> wrote in messag
news:B5E6EB9D-227A-42EF-A5A4-(E-Mail Removed)..
> Hi
>> I'm creating a control very similar to the ListView in Details mode. I'

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 d

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 down
>> The only way I can think of to do this right now is to create a top-docke

panel 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
>> Any ideas
>> Thanks
>> Yaro




 
Reply With Quote
 
Ian Frawley
Guest
Posts: n/a
 
      10th Mar 2004
Ah right

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

I'll post if your interested.

Ian
"Yaron" <(E-Mail Removed)> wrote in message
news:5C2F8E31-B32F-4CF9-AB3C-(E-Mail Removed)...
> No, regular windows form.
>
> Yaron
>
> ----- Ian Frawley wrote: -----
>
> Hi,
>
> Is this in a web form?
>
> Ian
>
> "Yaron" <amberite_@hotmail.com> wrote in message
> news:B5E6EB9D-227A-42EF-A5A4-(E-Mail Removed)...
> > 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

>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lookup using column headers and row headers Memphus01 Microsoft Excel Misc 1 13th Apr 2009 04:57 PM
Hide Column Headers but not row (Headers) Kevan Gradwell Microsoft Excel Programming 1 16th Mar 2007 05:59 PM
Column Headers are numeric as the Row Headers =?Utf-8?B?TWFyayBCdXJzaWFu?= Microsoft Excel Crashes 3 21st Feb 2007 04:56 PM
How do you use System.Drawing for reading .jpeg or .gif headers? =?Utf-8?B?QnJpYW4gS2l0dA==?= Microsoft Dot NET Framework 2 21st May 2005 01:37 AM
How to set Column headers as row headers in Data grid control =?Utf-8?B?VlIgUmF2aW51dGhhbGE=?= Microsoft Dot NET Framework Forms 1 3rd May 2005 12:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:14 PM.