Multirow listview (sort of)

  • Thread starter =?iso-8859-1?q?Nils Hedstr=f6m
  • Start date
?

=?iso-8859-1?q?Nils Hedstr=f6m

I have a problem with my windows form.
I want to display items that doesn't fit on one row in a listview.
I would like to find a control which enables me to add all my columns but
one to the first row and the last column on the second row.
If it was a html-table an item would look like this
<tr><td>Column 1</td>
<td>Column 2</td>
<td>Column 3</td>
</tr>
<tr>
<td colspan="3">Column 4. Big.</td>
</tr>

It would be nice if the control would be similar to a listview in Details-view
(able to change the width and sort on the columns in the first row).


/nisse
 
A

Alejandro Lapeyre

Thats the "advantage" of wrapping everything from the win32 world.
You get the original ListView limitations, and this is one.

Maybe you can get arround this owner drawing the items.

or

you can create a HeaderControl (why isnt it already wrapped?)
owner draw a ListBox.

If you go this way you will have to find a method to get the Horizontal
Scroll Bar notifications from the ListBox, since it does not send them.

Best Regards,
Alejandro Lapeyre.

"Nils Hedström <[email protected]>" <=?iso-8859-1?q?Nils Hedstr=f6m
 
A

Alejandro Lapeyre

Great!

So you didnt want to reinvent the wheel ha?
:)

Best Regards,
Alejandro Lapeyre
 

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