tags:

views:

5

answers:

0

i have listview by several column that count of column is dynamic i want to add data to listview i can calculate number of columns i use following code for static number of columns

can i add data to this listview by dynamic number of column?

Webpagelst.Items.Add(new ListViewItem(new[] { "Page", page.FileName }));

i find this code

string[] row1 = { "s1", "s2", "s3" }; 
listView1.Items.Add("Column1Text").SubItems.AddRange(row1); 

how can row1 fill? i have one list of string how i can fill the row1 by list?

related questions