Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find value in a column of data view
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
How to find value in a column of data view
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01550250
Message ID:
01550250
Vues:
86
Hi,

I have a data view of all records and all columns in a table. Then this data view is bound to a drop down control. Here is the segment of the code:
dvPriority = BizObject.GetPriority();
ddlPriority.DataSource = dvPriority;
ddlPriority.DataValueField = "PRIORITY";
ddlPriority.DataBind();
When user selects a record from the drop-down list I can easily get the value of the bound column as
this.ddlPriority.SelectedValue.ToString())
But how can I get the value of some other column. For example, say this table has column "NUM_DAYS" (type Integer). How can I determine the value in this column based on the selected value? TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform