protected
void
RadGrid1_InfrastructureExporting(
object
sender, GridInfrastructureExportingEventArgs e)
{
if
(RadGrid1.ExportSettings.ExportOnlyData)
{
// Access the first row of the Export Structure (header row)
ExportInfrastructure.CellCollection cells = e.ExportStructure.Tables[0].Rows[1].Cells;
// Loop through the header cells and trim their values from white spaces
foreach
(ExportInfrastructure.Cell cell
in
cells){
cell.Value = cell.Text.Trim();
}
}
}
Protected
Sub
RadGrid1_InfrastructureExporting(sender
As
Object
, e
As
GridInfrastructureExportingEventArgs)
If
RadGrid1.ExportSettings.ExportOnlyData
Then
'Access the first row of the Export Structure (header row)
Dim
cells
As
ExportInfrastructure.CellCollection = e.ExportStructure.Tables(0).Rows(1).Cells
'' Loop through the header cells and trim their values from white spaces
For
Each
cell
As
ExportInfrastructure.Cell
In
cells
cell.Value = cell.Text.Trim()
Next
End
If
End
Sub