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
Ryan Thomas
NA
13
21.2k
gridview selected item to textbox
Aug 4 2010 5:36 PM
i have read many forums relating to getting the value of the selected row from the gridview and setting it to a textbox, however i cannot copy the code to my project. the code i have frequently seen is:
string selectedItem = MyGridView.SelectedRow.Cells[1].Text;
textboxItem.Text = selectedItem;
However in my Vis studio, the .SelectedRow is unavailable but instead SelectedRows is available, this completely messes the code up as it cannot be compiled. Is there a reason why i cannot use Row instead of rows
any help would be much appreciated
thanks
Reply
Answers (
2
)
Confused about Private Sub, Public Sub etc.
OOP and Indexer problem