Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
display gridview selected row value to dropdownlist in c#
narasiman rao
9y
1.1k
1
Reply
i want to display gridview selected row value to dropdownlist.
for that my code as follows
protected void gvFacdet_SelectedIndexChanged(object sender, EventArgs e)
{
txt_name.Text = gvFacdet.SelectedRow.Cells[1].Text.ToString();
ddldesg.Items.Add(gvFacdet.SelectedRow.Cells[2].Text.ToString());
}
In gridview row as follows
Name Designation
select Ramesh Courseofficer
in run mode as follows
Name textbox
Designation dropdownlist
When i select the gridview row value that gridview selected row value to be displayed in respective textbox and dropdownlist
In textbox name to be displayed and dropdownlist designation to be displayed.
please help me what is the problem in my above code.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
how to search (any student id number , then all data show).
loop through all rows in a radgridview and get the contents