1. Pushing the limits of a list view

All, 

I think I'm pushing the limits of a list view control, but was curious
if anyone knew the answer off the top of their heads.

I've got a program that dynamically builds a list view (columns and data
rows).  In one situation I added 700+ columns to the list view.  The data
displays fine but the column headings are not drawn after columns 396.  
As a matter of fact, column 396 is only half drawn!  Is this a known 
limitation?  If not, I guess I'll have to dig and figure out why....

TIA,

Jonas

new topic     » topic index » view message » categorize

2. Re: Pushing the limits of a list view

Jonas Temple wrote:
> 
> I've got a program that dynamically builds a list view (columns and data
> rows).  In one situation I added 700+ columns to the list view.  The data
> displays fine but the column headings are not drawn after columns 396.  
> As a matter of fact, column 396 is only half drawn!  Is this a known 
> limitation?  If not, I guess I'll have to dig and figure out why....

I don't have your answer, but I'm very curious as to why you
need so many columns! :D

new topic     » goto parent     » topic index » view message » categorize

3. Re: Pushing the limits of a list view

cklester wrote:
> 
> 
> Jonas Temple wrote:
> > 
> > I've got a program that dynamically builds a list view (columns and data
> > rows).  In one situation I added 700+ columns to the list view.  The data
> > displays fine but the column headings are not drawn after columns 396.  
> > As a matter of fact, column 396 is only half drawn!  Is this a known 
> > limitation?  If not, I guess I'll have to dig and figure out why....
> 
> I don't have your answer, but I'm very curious as to why you
> need so many columns! :D
> 
Well, I wasn't going to go into the details but...a user of my FROG
database browser reported the problem.  With FROG the user can open any
database file and browse the records in the file.  One file in particular
has 796 columns!  So a "select * from myfile" returns every column in 
the file.  I adivsed the user to limit the number of columns returned but
it's much easier to type a "select *" than "select fld1, fld2, fld3, etc..."

It's pretty unusual to have files with that many columns but it does 
happen!

Jonas

new topic     » goto parent     » topic index » view message » categorize

4. Re: Pushing the limits of a list view

> > > I've got a program that dynamically builds a list view (columns and data
> > > rows).  In one situation I added 700+ columns to the list view.  The data
> > > displays fine but the column headings are not drawn after columns 396.  
> > > As a matter of fact, column 396 is only half drawn!  Is this a known 
> > > limitation?  If not, I guess I'll have to dig and figure out why....
> > 
> > I don't have your answer, but I'm very curious as to why you
> > need so many columns! :D
> > 
> Well, I wasn't going to go into the details but...a user of my FROG
> database browser reported the problem.  With FROG the user can open any
> database file and browse the records in the file.  One file in particular
> has 796 columns!  So a "select * from myfile" returns every column in 
> the file.  I adivsed the user to limit the number of columns returned but
> it's much easier to type a "select *" than "select fld1, fld2, fld3, etc..."
> 
> It's pretty unusual to have files with that many columns but it does 
> happen!
> 
> Jonas

Heyas Jonas =)

I dont have all the answers as regards to this particlar
question, but I do know some of it.

Behind the scenes, the ListView API (as regards to the
actual drawing) is limited to 16 bits of resolution.
You can (I think) have as many columns as you like, but
it will not be able to draw anything past 16 bits
(32768 pixels) in width.

The only solution(s) that I am aware of is either
A) use a custom control that does not have this limit or
B) use smaller columns to pack in more visible area

I would opt for A personally... if you can find a good
one.

Don Phillips
     National Insturments
     mailto: eunexus at yahoo.com

new topic     » goto parent     » topic index » view message » categorize

5. Re: Pushing the limits of a list view

On Tue, 01 Jun 2004 09:38:54 -0700
Jonas Temple <guest at RapidEuphoria.com> wrote:

> 
> 
> posted by: Jonas Temple <jtemple at yhti.net>
> 
> All, 
> 
> I think I'm pushing the limits of a list view control, but was curious
> if anyone knew the answer off the top of their heads.
> 
> I've got a program that dynamically builds a list view (columns and data
> rows).  In one situation I added 700+ columns to the list view.  The data
> displays fine but the column headings are not drawn after columns 396.  
> As a matter of fact, column 396 is only half drawn!  Is this a known 
> limitation?  If not, I guess I'll have to dig and figure out why....
> 
> TIA,
> 
> Jonas

I suggest you to add two buttons to have a scroll to sides between the columns
and only have X columns in the listview, only changing their name & data when u
move. I don-t think i'm explaning right, but i'm hurry.
Hope you get it.

Best Regards,
	Guillermo Bonvehi

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu