Code Project to my rescue - again! Greetings everyone.
I have a ListView on my form which has the following columns :
Qty to Receive
Qty Ordered
Qty Received
Qty Outstanding
and others which are not applicable here.
I have set the LabelEdit property to True and have the following event :
Private Sub lsv_GRV_DoubleClick(sender As Object, e As System.EventArgs) Handles lsv_GRV.DoubleClick
lsv_GRV.SelectedItems(0).BeginEdit()
End Sub
This allows the user to doubleclick on the first column (Qty to Receive) of any number of rows, and enter a value.
What I am really battling with is retrieving that value so that I can adjust the 'Qty Received' value and the 'Qty Outstanding' value with simple arithmetic.
All the events that I have tried (and that's just about all of them) only return the value that was in the selected item before the double click (which is always null).
Therefore, in a nutshell, how can I immediately retrieve the value that a user has entered after double clicking on an item.
Any assistance would be much appreciated.