I've been at this for hours.
I have a grid with:
Edit Column
Delete Column
Bound Column
I want to export this as Excel.
I get the Bound Column in column C with columns A and B blank. I don't want columns A and B at all.
My last attempt was like this based on http://www.telerik.com/help/aspnet/grid/grdexporttipstricks.html
This too does not work.
Can you tell me how to remove columns from the resulting Excel file?
Remove rows?
I have a grid with:
Edit Column
Delete Column
Bound Column
I want to export this as Excel.
I get the Bound Column in column C with columns A and B blank. I don't want columns A and B at all.
My last attempt was like this based on http://www.telerik.com/help/aspnet/grid/grdexporttipstricks.html
protected void IndicationsExport(object sender, EventArgs e) |
{ |
gridIndications.MasterTableView.Columns.FindByUniqueName("EditColumn").Visible = false; |
gridIndications.MasterTableView.Columns.FindByUniqueName("DeleteColumn").Visible = false; |
gridIndications.MasterTableView.ExportToExcel(); |
gridIndications.MasterTableView.Columns.FindByUniqueName("EditColumn").Visible = true; |
gridIndications.MasterTableView.Columns.FindByUniqueName("DeleteColumn").Visible = true; |
} |
This too does not work.
Can you tell me how to remove columns from the resulting Excel file?
Remove rows?