Hi! Could someone help me with getting the value of an email address in a GridHyperLinkColumn from the code behind please?
Here's the aspx code:
Essentially when a user clicks on a submit button for the RadGrid itself, I would like to grab the email address for each selected row in the grid and send an automated email.
Here's the code behind I have for finding the selected rows in the grid, however, I'm not sure how to retrieve the value of the email address from the GridHyperLinkColumn...
Any help would be greatly appreciated. Thanks!
Here's the aspx code:
<
telerik:GridHyperLinkColumn
DataNavigateUrlFields
=
"Email1"
UniqueName
=
"Email1"
DataNavigateUrlFormatString
=
"mailto:{0}"
DataTextField
=
"Name"
HeaderText
=
"Reviewer"
SortExpression
=
"Email1"
ShowFilterIcon
=
"false"
ShowSortIcon
=
"false"
AutoPostBackOnFilter
=
"true"
/>
Essentially when a user clicks on a submit button for the RadGrid itself, I would like to grab the email address for each selected row in the grid and send an automated email.
Here's the code behind I have for finding the selected rows in the grid, however, I'm not sure how to retrieve the value of the email address from the GridHyperLinkColumn...
If (RadGrid1.SelectedItems.Count > 0) Then
For Each item As GridDataItem In RadGrid1.SelectedItems
'Add code here to retrieve email address
Next
End If
Any help would be greatly appreciated. Thanks!