General information
Title:
String of hyperlink in grid
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only