Is "colspan" in ListView possible?

G

Guest

I am working with MS Visual studio C#.net, .net framework 1.1.

Do you have an idea, how can I use the ListView (details display mode),
that it does similarly as an html table do?
Or there is a better container which would fit my needs?

What I need in the ListView is:

1. Above some subitems, a common header should appear
(above the actual column headers).

2. In some rows I don't have all details (texts for all subitems),
but instead I have a commentary, common for some subitems.
So, I would need a kind of "colspan" in a table.

I would be grateful for any help/
Jola

----------------------------------------------------
I want to obtain that (example):

<html>
<table border=1>
<tr>
<th colspan='2'>

</th>
<th colspan='3'>
Block 1
</th>

<th>

</th>
<th colspan='3'>
Block 2
</th>
</tr>
<tr>
<th>
Main item
</th>
<th>

</th>
<th>
Subitem 1
</th>
<th>
Subitem 2
</th>
<th>
Subitem 3
</th>

<th>

</th>
<th>
Subitem 11
</th>
<th>
Subitem 22
</th>
<th>
Subitem 33
</th>
</tr>
<tr>
<td>
First entry
</td>
<td>

</td>
<td>
1284
</td>
<td>
4352
</td>
<td>
3214
</td>

<td>

</td>
<td>
3421
</td>
<td>
2412
</td>
<td>
3421
</td>
</tr>

<tr>
<td>
Second entry
</td>
<td>

</td>
<td colspan='3'>
here comes the commentary
</td>

<td>

</td>
<td>
4536
</td>
<td>
9867
</td>
<td>
3910
</td>
</tr>

<tr>
<td>
Third entry
</td>
<td>

</td>
<td>
3424
</td>
<td>
3334
</td>
<td>
3214
</td>

<td>

</td>
<td colspan='3'>
here comes the commentary
</td>
</tr>
</table>
</html>
 
C

Carlos J. Quintero [.NET MVP]

G

Guest

Thank you for your quick answer. I will try the link and give here a
feedback, how I implemented my table.

Jola
 
G

Guest

This is to difficoult for me, to understand the custom draw. I would need any
example which could solve my problem. Do anybody know any example (in C#) for
my question?

Jola
 

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