I've created two columns on the list view as follows.
ColumnHeader colHed; // Header one colHed = new ColumnHeader(); colHed.Text = "Name"; colHed.Width = 100; this.lwDetails.Columns.Add(colHed); // Header two colHed = new ColumnHeader(); colHed.Text = "Address"; colHed.Width = 200; this.lwDetails.Columns.Add(colHed);
Then on a separate function I try to add data to those columns. Name and address of a one person store in a string array named items. I try to add data as follows.
lwDetails is the list view. In this case name and address are added to the same column. How can I correct it.