Thank you, your article is valuable for me!
Replyit really helped me. i am sick of stupid data grid
ReplyThe provided code set is almost what I have been looking for. But since I'm an extreme newbie, I'm finding it bit difficult to do the neccessery changes here and there. My task is, once a keyword entered in a text box and click on a button to search, the list view should display the matching set of records. It could be none, one or hundred. No need of any kind of manipulations. Just the set of records should be desplayed also the scrolling should be enabled. Mine is an Access Database with one table and one column. Database name: db1 Table name: tbl1 Field name: rec1 Appreciate if someone could help me with the relevent code set. Thank you.
ReplyHow can i do it in reverse? Populate database from selected item in listview.
ReplyOriginally posted by: Bruce Pollock
Bruce
I've just started coding vb.net. Thank you for this article it helped out a great deal.
Originally posted by: Kostas
Hello All,
I'm trying to use the .NET listview control to load a list of records and when an event occurs I want to change the checked property of a ListItem.
I know the Primary Key (ID) of the record I want to change.
In VB6
I did the Listview adding like this :
Dim MyItem as ListItem
Set MyItem=ListView1.ListItems.Add("#" & TRIM(MyID), MyText)
and when I wanted to change a certain "myID" checked property I was using
ListView1.ListItems("#" & MyID).Checked=True
How can I do this in .NET Listview (access a certain ListItem by a Unique KEY???)
Thank you in advance,
Originally posted by: Aloysious
Help me in telling me whether it is possible to hide columns and having multi line column headers.
Your help is gratly appreciated
ReplyOriginally posted by: Ansar
In a listview if item is checked the row should be selected or highlighted how to achieve this functionality.
ReplyOriginally posted by: phu
Im developing a major headache in trying to figure out how to retreive the index of the selected item in the listview.
If anyone has figured this out and can help, it would be greatly appreciated.
Thanks.
ReplyOriginally posted by: chris
Hallo:
You write:
That was pretty easy, how hard can the rest of this be?
Hey, I am trying since hours to get this so easy code running. It is not so easy, considering I try it on vb.net cf. ColumnHeader and SubItems.Add seems not too work in
vb.net cf. And you tell it's easy!
Please consider making such comments when you tested such source code on all platforms including cb.net cf.
(Or write this code will not work on cf so people do not waste their time trying it)
Thanks
Chris
P.S. My test envirement: XDA with Armstrong Processor from
British Telecom.