Home All Groups Group Topic Archive Search About
Author
16 Mar 2006 11:49 PM
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

Author
17 Mar 2006 4:48 AM
I Don't Like Spam
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
Author
17 Mar 2006 12:03 PM
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


Show quoteHide quote
"I Don't Like Spam" <no@spam.com> wrote in message
news:%23ffwH4XSGHA.2176@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
Author
17 Mar 2006 6:40 PM
Homer J Simpson
"Martin" <x@y.com> wrote in message
news:uXOHirbSGHA.1160@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.
Author
18 Mar 2006 3:26 AM
s p
Where can i get the example of grouping headers in DataGridView????

*** Sent via Developersdex http://www.developersdex.com ***
Author
18 Mar 2006 4:57 AM
Homer J Simpson
"s p" <nkotb_2***@yahoo.com> wrote in message
news:e04DEvjSGHA.4384@tk2msftngp13.phx.gbl...

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

http://msdn2.microsoft.com/en-us/library/system.windows.forms.listview.groups.aspx
Author
18 Mar 2006 5:37 AM
s p
The link is Grouping Header in ListView, How can i implement this in my
DataGridView????

*** Sent via Developersdex http://www.developersdex.com ***
Author
18 Mar 2006 5:40 AM
Homer J Simpson
"s p" <nkotb_2***@yahoo.com> wrote in message
news:OSEEW4kSGHA.1236@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.
Author
18 Mar 2006 5:46 AM
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 ***
Author
18 Mar 2006 3:28 AM
s p
Where can i get the example of grouping header in DataGridView????

*** Sent via Developersdex http://www.developersdex.com ***