How do I find the value for ListDataTextField value given the ListDataValueField for a dropdown

3 replies. Last post: June 10, 2010 3:01 PM by John Valentin
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

I have a WebGrid and I'm using a dropdown for a column (location). The column is part of a record representing a phone in an office (location, phone number extension).

The source of the dropdown is a stored procedure.

There are multiple ways of editing here, but one of the options is when the clicks a button, a 'search' window appears allowing the user to select a different office phone. When this is done, I get the location code of the new phone.

I can get the location code (which is the ListDataValueField for the dropdown) but how can I get the ListDataText field value?

 

In other words, I only have the Value for the cell. How can I get the Text value from the dropdown when given the Value of the cell?

All times are GMT -5. The time now is 9:50 PM.
Previous Next