hi
i created object array....
object[] array = new object[ listview1.selectedItems.Count];
listview1.selectedItem.CopyTo(array, 0);
i need to display this object[] on listView 2......how can i do that over here
this.listView2.Items.Add( how can i put my object[] over here as a string... );
help me.....thx a lot

asela Wijesooriya57 reputationPosted Feb 22, 2009, 11:00 PM EST
thanks a lot for ur HELP.....
finaly i wrote the code.....
here it is for any body can use it.....
object[] array = new object[listView1.SelectedItems.Count];
listView1.SelectedItems.CopyTo(array, 0);
string[] ahh = new string[array.Length];
int i = 0;
foreach(object each in array)
{
ahh[i] = each.ToString();
i++;
}
foreach (string o in ahh)
{
this.listView2.Items.Add(o);
}
Albertto Lie55 reputationPosted Feb 22, 2009, 4:19 PM EST
for(int i=0;i<object.length;i++)
{
this.listView2.Items.Add( object[i].ToString() );
}
hi
i created object array....
object[] array = new object[ listview1.selectedItems.Count];
listview1.selectedItem.CopyTo(array, 0);
i need to display this object[] on listView 2......how can i do that over here
this.listView2.Items.Add( how can i put my object[] over here as a string... );
help me.....thx a lot
asela Wijesooriya57 reputationPosted Feb 22, 2009, 9:31 PM EST
Jan MontanoRank #1,295 · 1.3K reputationPosted Feb 23, 2009, 3:08 PM EST
foreach (ListViewItem selectedItem in listView1.SelectedItems)
{
listView2.Items.Add(selectedItem.Text);
}