Hello,
Can someone tell me if its possible (and if so provide a snippet of code) on how to set up word wrapping from a WebDataGrid or WHDG to excel using WebExcelExporter?
Thanks.
You can handle event like cell exporting of the WebExcelExporter and set cell format to wrap column text as shown below:
protected void WebExcelExporter1_CellExporting(object sender, ExcelCellExportingEventArgs e) { if (e.CurrentColumnIndex == 1) { e.WorksheetCell.CellFormat.WrapText = Infragistics.Documents.Excel.ExcelDefaultableBoolean.True; } }
I hope this helps
I am just following up to see if you were able to implement word wrapping while exporting data to excel based on details I have provided.