I could not find ItemDataBound Property. I can find RowDataBound. Pl clarify
Main Topics
Browse All TopicsWe have binded the dataset to the grid which has got 3 columns ( col1, col2, col3). We have set the hyperlink to the col2. on click on hperlink, we would like to pass col1 and col3 values along with col2. Pl let me know how it can be done.
We are working on ASP.net 2.0 with VB.Net.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
1) go to the code view.
2) select the datagird's name in the top left combobox
3) then in the top right combobox select the ItemDataBound
then one procedure will be automatically created like this
Private Sub dg_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.
'some code here
End Sub
so at last your code should be loock like this
Private Sub dg_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.
If e.Item.ItemType = ListItemType.AlternatingIt
e.Item.Cells(5).Text = "<a href=""urpage.aspx?val1=" & Server.UrlEncode(e.Item.Ce
End Sub
see these images to get help
http://www.ee-stuff.com/Ex
http://www.ee-stuff.com/Ex
or to see all files
http://www.ee-stuff.com/Ex
From PAQ http://www.experts-exchang
In the column definitions of your GridView in the ASPX page:
<asp:HyperlinkField DataNavigateUrlFields="Col
Business Accounts
Answer for Membership
by: ajaysharmaapjsPosted on 2007-04-06 at 01:47:04ID: 18862811
in the dg_ItemDataBound put this
em Or e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.SelectedItem Then
lls(0).Tex t) & "&val2=" & Server.UrlEncode(e.Item.Ce lls(1).Tex t) & "&val3=" & Server.UrlEncode(e.Item.Ce lls(2).Tex t) & """>Add</a>"
If e.Item.ItemType = ListItemType.AlternatingIt
e.Item.Cells(5).Text = "<a href=""urpage.aspx?val1=" & Server.UrlEncode(e.Item.Ce
End If