We use several radGridViews in our project and have often included an export button to push the content of the grids to Excel. Our users love the feature.
Recently we discovered a problem when you have a combobox column. It seems to be trying to convert the display string to the type of the column during the export. It's difficult to explain so I have prepared a small demo of the problem:
https://www.dropbox.com/s/4zkr5ofgmyfbgtt/radGridViewErrorTest.zip
if you try to export the data it will throw an error saying that the 'String must be exactly one character long'. For combo boxes that use an integer as the selected value instead of a char (like this example does) the message will ready 'Input string not in correct format'.
Is there a better way to do combo box columns or the export so that this error can be avoided?
Recently we discovered a problem when you have a combobox column. It seems to be trying to convert the display string to the type of the column during the export. It's difficult to explain so I have prepared a small demo of the problem:
https://www.dropbox.com/s/4zkr5ofgmyfbgtt/radGridViewErrorTest.zip
if you try to export the data it will throw an error saying that the 'String must be exactly one character long'. For combo boxes that use an integer as the selected value instead of a char (like this example does) the message will ready 'Input string not in correct format'.
Is there a better way to do combo box columns or the export so that this error can be avoided?