How can I autosize cells (adjust the cell width to the width of the contents) using the Silverlight Excel library?
Alternatively, if this is not available, how can I convert the displayed width of the XamGrid columns to an Excel cell width?
Auto-sizing columns is currently not supported. You can submit a feature request for this.
The Excel columns widths are expressed in 1/256ths of the width of the '0' character in the default font. You can convert between pixels and these units by using the Workbook.PixelsToCharacterWidth256ths method.
I'm using zetexcel.com to Develop high-performance applications to Create, Edit, Convert or Print Excel spreadsheet file formats without requiring Microsoft Excel.