This is a migrated thread and some comments may be shown as answers.

GridView ColorColumn binding problem

1 Answer 97 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sandi Markon
Top achievements
Rank 1
Sandi Markon asked on 30 Jan 2012, 03:16 PM
Hello.

I have Gridview with ColorColumn which is binded to database varchar field. Data displays correctly, but when I want  to change it, error [Input string was not in correct format.] is thrown. I think it has something to do with changing data from string to System.Drawing.Color.

Regards.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 31 Jan 2012, 11:53 AM
Hi Sandi,

Thank you for writing.

Indeed, with the current implementation of GridViewColorColumn, such an exception is thrown when the column is bound to data. We are aware of this case and we will address it in a future release. You can work around this by setting a TypeConverter to the column. Please refer to the attached project. 

I hope that you find this information helpful. Should you have any other questions, do not hesitate to contact us.
 
Regards,
Stefan
the Telerik team

SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Tags
GridView
Asked by
Sandi Markon
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or