Second Item from the List

Class library usage, coding and language questions.
Rakesh123
Posts: 63
Joined: Thu Oct 28, 2010 2:18 pm

Second Item from the List

Post by Rakesh123 » Wed Dec 01, 2010 5:34 am

Hi frnds,
I am having a ListView which has been customised into rows and columns.The column fields r like EmpID,EmpName.I want to select the second item from the list i.e EmpName.But by using the following code I can able to receive the data from the first field only.

ListView.Items[1].Text;//Gives EmpID

So can anybody suggest me how to retrive the second field data.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Second Item from the List

Post by Support Team » Wed Dec 01, 2010 2:14 pm

Hi Rakesh123,
could you please send us a snapshot (http://www.ranorex.com/support/user-gui ... html#c2072) from your ListView under test.

Best regards,
Christian
Ranorex Team
.
Image

Rakesh123
Posts: 63
Joined: Thu Oct 28, 2010 2:18 pm

Re: Second Item from the List

Post by Rakesh123 » Wed Dec 01, 2010 2:47 pm

How can I send the snapshot to u?Please provide the details

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Second Item from the List

Post by Support Team » Wed Dec 01, 2010 2:57 pm

Either per attachment here in the forum or per email to: [email protected]

Best regards,
Christian
Ranorex Team
.
Image

Rakesh123
Posts: 63
Joined: Thu Oct 28, 2010 2:18 pm

Re: Second Item from the List

Post by Rakesh123 » Fri Dec 10, 2010 11:09 am

I have attached the screen shot.Pls chk it out.In the ListView I cvan able to access only the 'Date' field but I want to retrive the 'Temp' field.Pls send me the solution ASAP
Attachments
ListView.JPG
ListView.JPG (48.76 KiB) Viewed 940 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Second Item from the List

Post by Support Team » Fri Dec 10, 2010 11:36 am

Hi,

your screenshot doesn't supply much information about your control.
So can you please send us a Ranorex Snapshot which covers your listview (not a screenshot).
An explanation on how to gnerate such a snapshot can be found at:
http://www.ranorex.com/support/user-gui ... html#c2072

Thanks.

Regards,
Tobias
Support Team
.
Image