GridView ColorColumn binding problem

2 posts, 0 answers
  1. Sandi Markon
    Sandi Markon avatar
    101 posts
    Member since:
    Jul 2012

    Posted 30 Jan 2012 Link to this post


    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.

  2. Stefan
    Stefan avatar
    2908 posts

    Posted 31 Jan 2012 Link to this post

    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.
    the Telerik team

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

Back to Top