Click here to Skip to main content
15,890,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<big>I have created a web site using ASP.NET.
I am using listview control to display values from the database.
A table (consisting of rows and columns) is used inside the list view for displaying data.
I display either 99 or 1 as the values in the cells of one of the columns(namely "User Type").
<b><u>My qustion now is</u>:</b>
is it possile to display a string ("Admin") corrsponding to value 99 in the cell or ("user") corrsponding to value 1 in the cell, in the same cell?
How do i extract values from the cells ?
Please help?</big>
Jyoti
Posted

1 solution

You can use the SelectedValue property[^].
This will determine the value of the key field.
 
Share this answer
 
Comments
Espen Harlinn 30-Aug-11 15:30pm    
A good simple answer :)
Abhinav S 31-Aug-11 1:41am    
Thank you Espen.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900