I have a radgrid which allows me to select multiple rows. I was wondering how I would get a column value from the selected rows and add them to an arraylist.
I have the following code behind for the radgrid already:
So I want to get the value from column 2 and display as - 001, 002, 004, 005, 007.
This then needs to go into an email.
Something like. The files you requested were: 001, 002, 004, 005, 007
I have the following code behind for the radgrid already:
Protected Sub ToggleRowSelection(ByVal sender As Object, ByVal e As EventArgs)
CType(CType(sender, CheckBox).NamingContainer, GridItem).Selected = CType(sender, CheckBox).Checked
End Sub
Protected Sub ToggleSelectedState(ByVal sender As Object, ByVal e As EventArgs)
Dim headerCheckBox As CheckBox = CType(sender, CheckBox)
For Each dataItem As GridDataItem In RequestFiles.MasterTableView.Items
CType(dataItem.FindControl("CheckBox1"), CheckBox).Checked = headerCheckBox.Checked
dataItem.Selected = headerCheckBox.Checked
Next
End Sub
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As EventArgs) Handles RequestFiles.PreRender
lblCountRecords.Text = String.Format("<
strong
>{0}</
strong
>", RequestFiles.SelectedItems.Count)
End Sub
So I want to get the value from column 2 and display as - 001, 002, 004, 005, 007.
This then needs to go into an email.
Something like. The files you requested were: 001, 002, 004, 005, 007