Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String of hyperlink in grid
Message
From
15/10/2003 14:27:45
Mindy Shingara
Central Susquehanna Intermediate Unit
Lewisburg, Pennsylvania, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
WebForms
Title:
String of hyperlink in grid
Miscellaneous
Thread ID:
00838994
Message ID:
00838994
Views:
48
I have an (string)account code field in a grid column and it's a hyperlink olumn. If I click that account hyperlink, the redirect works great, but I can't get the acct string into a variable to carry with me. Below is my code:
'grdAcct' = my grid, Dim l_cindex As Integer, Dim l_cacct As String
****
grdAcct.SelectedIndex = e.Item.ItemIndex
l_cindex = grdAcct.SelectedIndex
l_cacct = Me.grdAcct.Items(l_cindex).Cells(0).Text.ToString
****
The hyperlink is in the first column of the grid (0) and l_cindex = 0 when I click the first row of the grid. But, l_cacct ALWAYS equals '' '' (they are actually double quotes). What am i doing wrong?
Reply
Map
View

Click here to load this message in the networking platform