Ok, so I am still learning list views. There are a few thing I have going on here. There are 3 columns to my list view (The listview is called league. The 3 columns are position, player and points) What need to happen is, for every player name there need to be a number in position, obviously simultaneous and ascending. then, the players are sorted depending on there "points" more points means further up. The player and the points are paired, but the position is a pre-set value that is not a part of the player or there score.
How can I do this?
So far I have manged to get numbers in the position column but my method may be incorrect.
This is just for testing purposes, ideally numbers will only appear for "occupied" name slots.
To get the name and the score to display in the test I had to use code like this:
This added info on row 0 to get it on row 1 id use (1) and (2) for row 2
Even though I have figured this out I can not seem to do what I need to.
Thanks
Dan
How can I do this?
So far I have manged to get numbers in the position column but my method may be incorrect.
Code:
Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
League.Items.Add("1")
League.Items.Add("2")
League.Items.Add("3")
League.Items.Add("4")
League.Items.Add("5")
League.Items.Add("6")
League.Items.Add("7")
League.Items.Add("8")
League.Items.Add("9")
League.Items.Add("10")
League.Items.Add("11")
League.Items.Add("12")
League.Items.Add("13")
League.Items.Add("14")
League.Items.Add("15")
League.Items.Add("16")
League.Items.Add("17")
League.Items.Add("18")
League.Items.Add("19")
League.Items.Add("20")
End SubTo get the name and the score to display in the test I had to use code like this:
Code:
League.Items(0).SubItems.Add("Daniel")
League.Items(0).SubItems.Add("100")Even though I have figured this out I can not seem to do what I need to.
Thanks
Dan