how to retrive values from EXListViewItem
Posted Date Unknown stephin Francis Antony 3 Comments


In my project i used an EXListViewItem. How can i retrieve corresoponding column values.

See All Responses Below...
Author
Message Rating
Posted on: 11/07/2013
Most of the list related controls have and item list where you can get the specified item in the index.

Try this code snippet..

    for (int i = 0; i < lv.Items.Count; i++)
    // is i the index of the row I selected?
    if (lv.Items[i].Selected == true)
    {
    //I show here the second field text (SubItems[1].Text) from the selected row(Items[i])
    Message.Show(lv.Items[i].SubItems[1].Text);
    break;
    }

Tom
 No.That is not working,because i placed label in that coulmns(dynamically). Actually i want to retrieve text of that label.
Share this page across other social networking sites



Posted on: 12/07/2013

I found the answer

 String test=((EXControlListViewSubItem)lstv.Items[1].SubItems[1]).MyControl.Text;
Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Comments
   Design  HTML
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

TekTipsDownload
GateExam
Academic Projects
TekTipsExperts



 
Site optimized for IE7, 1280 X 768 and above. Copyright © 2010 - 2018 KTS InfoTech
Site Developed Using KTS WebCloud