Search the Community
Showing results for tags 'listview'.
-
In VB.net 2005. I attach an imagelist to a listview in details mode so that I can put icons on the column headers to indicate sort direction. This works fine but it also puts a blank area in front of every row inserted into the listview, presumably it is space for an icon. I will not be having icons on any rows in the listview. Is there someway to remove this blank space or to have the column headers use an external imagelist that doesnt make the listview put the space there in the first place?
-
- columnheader
- icon
-
(and 2 more)
Tagged with:
-
Private Sub btnaddcart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnaddcart.Click Dim part As PartDescription = New PartDescription() part = CType(lbxItems.SelectedItem, PartDescription) Dim SItem As String Dim Updateqty As Boolean = False SItem = part.PartNumber MsgBox(SItem) For Each i As string In lstPart.Items If lstPart.SelectedItem.ToString = SItem Then Dim tempqty As Integer = Integer.Parse(lstQuantity.SelectedItem.Items.text) tempqty += 1 lstQuantity.SelectedItem.Items.text = tempqty.ToString Updateqty = True End If Next If Updateqty = False Then lstPart.Items.Add(part.PartNumber) lstDescripption.Items.Add(part.PartName) lstUCost.Items.Add(part.UnitPrice) lstQuantity.Items.Add("1") lstUCost.Text = (part.UnitPrice * 1).ToString() End If End Sub i have a bunch of listboxes one has the final item you select then press addtocart witch will take seprate parts of the string and add themm to the relevent listbox and have qty set to 1 what i want is if the same item is selected again is instead of making a dublicate is to increse the relevent qty in the qty listbox but i keep getting this error Public member 'Items' on type 'String' not found i know i could use a listview for this task instead but i wanted to do it with seprate listboxes any help would be appreciated thanks
-
Hi! I'm have been converting old VB6.0 project to VB.NET (2008) and now I'm struggling with ListView component. ListView Events are coming clearer now and I managed to read a huge amount of data (96.000 rows) from textfile to ListView with 6 subitems. All rows are build up nicely, but when I'm scrolling down the rows slowly, through scrollbar (clicking bottom arrow), rowheight is reduced to about half in first 20-30 rows below components upper row??? When I'm using PageDown or scrolling faster (dragging from scrollbar), everything is ok. And when I click to blurred row, it is refreshed and rowheight returns to normal. This didn't happen in VB6.0. Is there any Event, where I could use "lstView.Refresh()" or something to avoid this? Can't advise people to use PageDown only, when scrolling!!!