vb.net - Add an item in a listview by index number -


All I am trying to find a way to add one of the columns in my listview. The way my code has been prepared is like this:

  while dr.Read () if dr.IsDBNull (12) then objItem = lstMaster.Items.Add ("nothing") Other objItem = lstMaster intervals (Dr (12)) if objItem with the end if Dr. ISDN Bull (11) then SubItems.Add ("nothing") Other .SubItems.Add (DR (11)) End if   

How can I say to keep it in just 3 columns (I 5 total (0-4)) Is the bus roll going down and it falls in the sequence?

Any help would be great! : O)

David

You have columns that add as many sub-items. Then the sub index to the bus index that you want to change for example:

  dim item = list view 1. item. Add to the integer = 1 list as CNT for "Test" (1). Columns Items item. SubItems.Add ("") Next item. Sub-item (3) Text = "blah"    

Comments