Hello,
I would like to know how to optimally fill a ListView, which is
defined as list, containing several columns?
The ListView contains several columns with a certain column name:
foreach (Field field in fields)
lvwData.Columns .Add(field.Name , 150,
HorizontalAlign ment.Left);
And now I want to add items. But now I need to set the value for a
column by its name. Something like:
ListViewItem item = new ListViewItem();
foreach (Field field in fields)
{
item[field.Name] = field.Value;
}
lvwData.Items.A dd(item);
But this is not possible because I have to distinguish between the
Item itself and its subitems.
Is there an easy way for me to add the items?
Thank you,
Norbert