Hi!

I have a small issue I have been working on.

A UI has a search button and a couple of check boxes. Depending on what check boxes are checked, certain columns of data sould be listed in the "grid".

SInce even the column title is dynamically based on the data (show sums and stuff) I would prefer to do it like this:

create column
set title
set all cells/rows
add to grid

I have been messing with the listview a few hours now and can't find a way to do this in a good way, with a minimum amount of code. All my attempts have been unsuccessful. I would love to do this:

listview1.Columns(calculatedColumnText).rows.addrange(result.Select(x => x.dataforcol1).ToArray().

But the above statement exist only in my dreams...

Anyone, please help!

/Henrik