I found a great thread here on how to export selected rows to excel/csv/pdf/etc. The code behind used looks like this:
Is there a way to send those selected rows to a textbox/panel/other control? Like:
RadGrid1.MasterTableView.FindControl(TextBox1.ClientID); etc.
Probably a simple solution, but I am not very good at this. Thanks.
Tom
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| foreach (GridDataItem dataItem in RadGrid1.MasterTableView.Items) |
| { |
| dataItemdataItem.Visible = dataItem.Selected; |
| } |
| RadGrid1.MasterTableView.ExportToExcel(); |
| } |
RadGrid1.MasterTableView.FindControl(TextBox1.ClientID); etc.
Probably a simple solution, but I am not very good at this. Thanks.
Tom