ListView item alignment

  • Thread starter Ludwig Wittgenstein
  • 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,
 
N

neva

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 ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top