469,133 Members | 1,404 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

Listview subitems

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
Mar 17 '06 #1
9 2263
Martin wrote:
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
Mar 17 '06 #2
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
"I Don't Like Spam" <no@spam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Martin wrote:
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

Mar 17 '06 #3

"Martin" <x@y.com> wrote in message
news:uX**************@TK2MSFTNGP09.phx.gbl...
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.

Mar 17 '06 #4
s p


Where can i get the example of grouping headers in DataGridView????

*** Sent via Developersdex http://www.developersdex.com ***
Mar 18 '06 #5
s p


Where can i get the example of grouping header in DataGridView????

*** Sent via Developersdex http://www.developersdex.com ***
Mar 18 '06 #6

"s p" <nk********@yahoo.com> wrote in message
news:e0**************@tk2msftngp13.phx.gbl...
Where can i get the example of grouping headers in DataGridView????


http://msdn2.microsoft.com/en-us/lib...ew.groups.aspx

Mar 18 '06 #7
s p


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

*** Sent via Developersdex http://www.developersdex.com ***
Mar 18 '06 #8

"s p" <nk********@yahoo.com> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl...
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.

Mar 18 '06 #9
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???

*** Sent via Developersdex http://www.developersdex.com ***
Mar 18 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Giulio Mastrosanti | last post: by
1 post views Thread by Mark Doggett | last post: by
2 posts views Thread by enchantingdb | last post: by
3 posts views Thread by Jason Huang | last post: by
10 posts views Thread by Adam Honek | last post: by
1 post views Thread by Jason Huang | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.