ListView with lots of columns

M

Markus Eßmayr

Hello,

in my current project, the created application should be able to display a
table with a column per deay of a year.
At first I used a ListView and added 365 columns.
Basically this works but as the column with is 150 pixels wide, the
resulting "row width" is 54750 pixels. This cannot be displayed by the
ListView especially the header.
The problem is, that the ListView internally resizes the child SysHeader32
control to the complete row width.
And because the maximum window width in Windows is 32767, thats the source
of my problem.

So please ... do you know any control, which is able to display a table as
wide as I need?

Thanks very much in advance!!!
Max
 
N

Norman Yuan

Even if the ListView is capable of displaying 365 columns (or other control,
for that matter), you have to consider if the design is practical: how wide
the computer screen it needs to display that many columns so that the
content can be viewable by human eyes, or does the business requires that
user MUST see entire row of information simaltaneously (I'd quit the job if
my employer ask to do this as my daily work)?

It is most likely that no matter what control you use, the user will have to
scroll the window horizontally significantly to see whole row. So, to make
your app a bit user-friendly, you should think it differently, such as
"Column paging", that is, consider to divide the data monthly or qurterly,
so you display 30/90 columns a screen. with proper navagation design, you
will allow user easily horizontally move to next month/quarter or any given
period.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top