listview updating a subitem value

evolet10000

Active member
Joined
Nov 22, 2012
Messages
40
Programming Experience
Beginner
i just want to put that quantity(11) and remarks(remakrs) to listview.subitem(5) and subitem(6) when i click add button,

thnks :D

listview.jpg
 
ahm?can you convert that concept into codes?pls :D

i tried this codes but nothing happens(this is the add b)

For Each itm As ListViewItem In frmPROPERTY_FRAMELoad_Data.ListViewLOAD_RIS_ITEMS.Items
If itm.SubItems(0).Text = loadPrtUserRisItms Then
itm.SubItems(5).Text = TextBoxISSUED_QTY.Text
itm.SubItems(6).Text = TextBoxREMARKS.Text
MsgBox("Success")
End If
Next
frmPROPERTY_FRAMELoad_Data.ListViewLOAD_RIS_ITEMS.Refresh()
Me.Close()
 
I don't really understand why you would need a loop. It looks like you got some data from the item in the first place so you must already have a reference to it. Just use that reference to access it again. Don't do it from the dialogue. The dialogue should close and simply make the data available via properties. The main form should get the data from those properties and update the ListView itself.
 
Back
Top