By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,244 Members | 1,972 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,244 IT Pros & Developers. It's quick & easy.

How to find control value binding control (Drow down list) ?

P: 1
fist I filled value of drow down and GridView control.
Now we find the databound of grid view control as per drow down value at time binding. ?

How we find the value of control time of binding in GridView control ?


- Umesh
May 29 '07 #1
Share this Question
Share on Google+
1 Reply


P: 1
foreach (GridViewRow row in GridView1.Rows)
{

string ddltext = ((DropDownList)
row.FindControl("DropDownList1")).SelectedItem.Val ue;
Response.Write(ddltext);
}

This is how you should find the control value. Hope this might help you.


Thanks
Pavi
Jun 1 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.