We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,703 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

GridView Hyperlink

Im creating ASP.NET project.
There is a gridview. in grid it has a hyperlinked column named with "select"
when I click "select", i want to get row data.

Most of the web sites have a lot of code about this. But I feel there must be a very simple method to get row data.

datasource, connection string is in VB.net file. it is connected properly and can view data correctly.

Please help me....

4
Contributors
2
Replies
9 Months
Discussion Span
6 Months Ago
Last Updated
3
Views
weeraa
Junior Poster in Training
68 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

In Visual Studio, in Gridview Tasks, if you enabled "Enable selection", this additional column will show in the gridview. Generally, this column can now be used so that when you click on it, you can display data in another control such as a details view. So, if on the same page, you create a details view, when you build that datasource, you can specify in the where clause to use the ID from the row in the gridview, thereby showing you row data.

Alternatively, you can add your own hyperlink control to a column, and modify its properties to take the user to another page and you can pass a querystring so that the receiving page can show row data.

JorgeM
Industrious Poster
4,173 posts since Dec 2011
Reputation Points: 297
Solved Threads: 569
Skill Endorsements: 119

JorgeM, you said: "In Visual Studio, in Gridview Tasks, if you enabled 'Enable selection', this additional column will show in the gridview."

What is the name of the PROPERTY of the GridView object that enabling 'Enable selection' affects?

Thanks in advance...

philiptdotcom
Newbie Poster
1 post since Dec 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0561 seconds using 2.64MB