3 Answers, 1 is accepted
...no way to edit a post eh? Anyways, the following is the code for the Grid:
Here is the binding:
Here is the export code:
- RESOLVED -
Converting the status from Char to String fixed it. Not sure why Excel, or your conversation process is trying to convert Chars to Doubles though.
By default Excel is trying to "guess" what is the content type in the cells and this can cause some errors.
If you would like to specify the format of the cells explicitly you should use the approach described in the following article:
On a side note, I noticed that you are using DataBind method to provide data for RadGrid. This method is used for simple data binding. As the name implies this type of binding is suitable only for the most simple scenarios.
In most cases it is recommended to use advanced data binding for RadGrid. You can handle the NeedDataSource event and set the DataSource for the grid in the handler.