Information générale
Titre:
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?
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement