ListView item alignment

  • Thread starter Thread starter Ludwig Wittgenstein
  • Start date Start date
L

Ludwig Wittgenstein

Hi, all.

I have a ListView in my GUI and I'm trying to align a collection of
times equally in 4 columns. For example, if I have 16, I want to put 4
in each column. How do I do this using a ListView in C#?


Thanks,
 
Hi, all.

I have a ListView in my GUI and I'm trying to align a collection of
times equally in 4 columns. For example, if I have 16, I want to put 4
in each column. How do I do this using a ListView in C#?

Thanks,

string[] columns = new string[] { "Column1", "Column2", "Column3",
"Column4" };
ListViewItem item = new ListViewItem(columns);
myListView.Items.Add(item);

This is the way to add a new item in a 4 colums listview.
Now, find the way to equally align them ;)
 
Back
Top