1,105,352 Community Members

GridView Hyperlink

Member Avatar
weeraa
Junior Poster in Training
97 posts since Oct 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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....

Member Avatar
JorgeM
IT Addict
6,414 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 963 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
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.

philiptdotcom
Newbie Poster
1 post since Dec 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member
 
0
 

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...

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article