I've written a code where depending on some condition i have add item in list as
With lview
.Items.Add(mydr(0))
With .Items(.Items.Count - 1).SubItems
if some condition then
.Add(mydr(9))
end if
end with
end with
But when i call listview click event for the if condition failure cases it gives error
InvalidArgument=Value of 9' is not valid for 'index'.
Parameter name: index
Is there any way that I can check if subitem exist or not.
Thanks