Listview subitems

M

Martin

On each Listview item I can add one or more so called sub-items. These
subitems appear to be little more than labels. I'm curious if I could add
something else as a subitem, for instance a textbox or combobox. Would
anyone know if that's possible and if so, how to do it?

Tia,
Martin
 
G

Guest

Martin said:
On each Listview item I can add one or more so called sub-items. These
subitems appear to be little more than labels. I'm curious if I could add
something else as a subitem, for instance a textbox or combobox. Would
anyone know if that's possible and if so, how to do it?

Tia,
Martin

Have you thought about using the DataGridView control (VS.2005) instead
of the listview? This has built in support for textboxes & comboboxes.

Chris
 
M

Martin

Hi Chris,

Thanks for your response. Yes, I have given the datagrid some thought, but
there are certain features of the listview that I really would like to use,
such as those group headers; they're great!

Secondly, the choice of control (checkbox, textbox or combobox) does (for
this particular form) not depend on the column, but on the row, e.g. rows
1-4 have a textbox, row 5 a checkbox and row 6 a combobox... I don't think I
can do that in a datagrid, although I have to admit the datagridview of
VB2005 has come a long way since the datagrid of VB6.

In VB6 I used the flexgrid and "floated" the appropriate control over it,
when the user clicked a cell. I guess I need to do something similar here.

Martin
 
H

Homer J Simpson

Thanks for your response. Yes, I have given the datagrid some thought, but
there are certain features of the listview that I really would like to
use, such as those group headers; they're great!

DataGridView supports group headers. MS have a nice example of that.
 
S

s p

The link is Grouping Header in ListView, How can i implement this in my
DataGridView????
 
H

Homer J Simpson

The link is Grouping Header in ListView, How can i implement this in my
DataGridView????

Sorry, my bad. I changed a project from one to the other and got confused
about which was which.
 
S

s p

What you mean is that , it is not applicable to DataGridView. Any other
idea , whether can there be grouping of headers in the DataGridView???
 

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