Hi
I'm trying to use the ListView control in my app.
I have question about it:
1 - How can I get a value of specified cell (if I want to read the value of cell 3,5)?
2 - How can I insert value to specific cell???
Thanks.
Printable View
Hi
I'm trying to use the ListView control in my app.
I have question about it:
1 - How can I get a value of specified cell (if I want to read the value of cell 3,5)?
2 - How can I insert value to specific cell???
Thanks.
Hi,
its is possible in the following manner but there is requirement that cell of listview is filled before it otherwise it would not work and give an exception OutofRange.
Code:ListView1.Items(2).SubItems(4).Text = "Given Entry"
in the listview control index start from 0 so if u want to enter the value in cell 3 u must write 2 and also in subitem u must write 4 in place of 5.
Best of luck
Warm Regards
Gurmeet:wave:
Hi, Thanks for the answer.
Another question is:
How can I track the cell that the user clicks on with its mouse?
Is this helpful?
Code:Private Sub ListView_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListView.SelectedIndexChanged
End Sub
Hi
How can I get the text of the cell's the user clicked on?
Hi,
i think this is not possible using a property of listview control. and if u still want to detect the particular cell Then u need to find out the mouse position and calculate as per row/column size which is not easy.
Best of luck
Warm Regards
Gurmeet:wave: