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 WijesooriyaPosted Feb 23, 2009, 4:00 AM
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);
}
Jan MontanoPosted Feb 23, 2009, 8:08 PM
foreach (ListViewItem selectedItem in listView1.SelectedItems)
{
listView2.Items.Add(selectedItem.Text);
}
asela WijesooriyaPosted Feb 23, 2009, 2:31 AM
Albertto LiePosted Feb 22, 2009, 9:19 PM
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