G
Guest
hi all this is very strange. i add list view sub item to list view item and
then list view item to list view. when i add sub item to list view item once
there seems to be 2 subitem on the list viewitem. 1st itts the listview item
text 2 the list view sub item text.
wheni add the list view item to list view it loosted the listviewsub item
text property value.
i have no idea why that happen. can any one help
i use vs 2003 CF ver 1.4 sp3
also bellow is the code i am using. this code is in side a for each loop
with data row being the itterative object
thanks for your tiem
************************************************************
System.Windows.Forms.ListViewItem.ListViewSubItem lViewSubItm = new
System.Windows.Forms.ListViewItem.ListViewSubItem();
lViewSubItm.Text = drowAMC[4].ToString();
System.Windows.Forms.ListViewItem lViewItm = new
System.Windows.Forms.ListViewItem();
lViewItm.Text=drowAMC[0].ToString();
lViewItm.Checked=bool.Parse(drowAMC[1].ToString());
lViewItm.SubItems.Add(lViewSubItm);
this.lview.Items.Add(lViewItm);
then list view item to list view. when i add sub item to list view item once
there seems to be 2 subitem on the list viewitem. 1st itts the listview item
text 2 the list view sub item text.
wheni add the list view item to list view it loosted the listviewsub item
text property value.
i have no idea why that happen. can any one help
i use vs 2003 CF ver 1.4 sp3
also bellow is the code i am using. this code is in side a for each loop
with data row being the itterative object
thanks for your tiem
************************************************************
System.Windows.Forms.ListViewItem.ListViewSubItem lViewSubItm = new
System.Windows.Forms.ListViewItem.ListViewSubItem();
lViewSubItm.Text = drowAMC[4].ToString();
System.Windows.Forms.ListViewItem lViewItm = new
System.Windows.Forms.ListViewItem();
lViewItm.Text=drowAMC[0].ToString();
lViewItm.Checked=bool.Parse(drowAMC[1].ToString());
lViewItm.SubItems.Add(lViewSubItm);
this.lview.Items.Add(lViewItm);