TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sahil Jani
NA
274
154.8k
System.Data.Datarawview
Jul 1 2011 8:05 AM
Hi,
I am populating dropdown into gridview.when i am running application, in dropdown it shows me this data
System.Data.Datarawview.
Here I have pasted my code :
public void FindControlInGV()
{
foreach (GridViewRow gvr in gvPopulate.Rows)
{
SqlDataAdapter ad = new SqlDataAdapter("select B_Element from Test_Table", con);
DataSet ds = new DataSet();
ad.Fill(ds, "Test_Table");
DropDownList ddlSelect = new DropDownList();
ddlSelect = (DropDownList)gvr.Cells[0].FindControl("ddlPopulate");
ddlSelect.DataSource = ds;
ddlSelect.DataBind();
}
//}
}
I am new to asp.net pls help me out.
Reply
Answers (
4
)
Differnce between ViewBag and ViewData in asp.net MVC 3?
How can use obout editor in asp.net 3.5