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
sita k
NA
43
52k
Need to set dropdownlist based on gridview selection
Nov 26 2013 6:11 PM
Hello Everyone, I would like to know how to set dropdownlist values after selecting the gridview row. I tried all the possibilities but it doesn't set to the selected value instead it always points to the initial item. Below is my piece of code. //ddlid.SelectedItem.Value = grdEmployee.SelectedRow.Cells[1].ToString(); // ddlname.SelectedItem.Value = grdEmployee.SelectedRow.Cells[3].ToString(); // txtSal.Text = grdEmployee.SelectedRow.Cells[4].Text; Thanks in advance.
Reply
Answers (
1
)
how to apply the Session in asp.netMVC 4
Upload a file or run a code automatically