The data you are loading into the list box is it static? I.E. does it change between loads? If the value of the number that you want to assign to the data is not used for anything important you can simply use a counter as you load the list.
Also, a bit more information as to your needs wouldn't go amiss.
We load the information from the SQL Server into the listview. It is dynamic. You can change the order of the listview by clicking on the column headers.
It is just a counter that we need. But my question is if Listview can do that automatically or must I use a simple counter.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.