|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Listview subitemsOn 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 Martin wrote:
> On each Listview item I can add one or more so called sub-items. These Have you thought about using the DataGridView control (VS.2005) instead > 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 > > of the listview? This has built in support for textboxes & comboboxes. Chris 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 "Martin" <x@y.com> wrote in message DataGridView supports group headers. MS have a nice example of that.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! Where can i get the example of grouping headers in DataGridView????
*** Sent via Developersdex http://www.developersdex.com *** "s p" <nkotb_2***@yahoo.com> wrote in message
http://msdn2.microsoft.com/en-us/library/system.windows.forms.listview.groups.aspx
news:e04DEvjSGHA.4384@tk2msftngp13.phx.gbl... > Where can i get the example of grouping headers in DataGridView???? The link is Grouping Header in ListView, How can i implement this in my
DataGridView???? *** Sent via Developersdex http://www.developersdex.com *** "s p" <nkotb_2***@yahoo.com> wrote in message Sorry, my bad. I changed a project from one to the other and got confused news:OSEEW4kSGHA.1236@TK2MSFTNGP11.phx.gbl... > The link is Grouping Header in ListView, How can i implement this in my > DataGridView???? about which was which. 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 *** Where can i get the example of grouping header in DataGridView????
*** Sent via Developersdex http://www.developersdex.com *** |
|||||||||||||||||||||||