Unable to input data in a field RRS feed

  • Question

  •  I tried to find the best place to list this issue. I hope this is correct

     Hello, I'm new to C# so any help would be greatly appreciated.

    When I try to input data into the GraphicID field. It gives me the folloowing message:
    "Invalid value for cell. The changed value in this cell is not recognized as valid. .Net data type byte[] Error message: You cannot use the result pane to set the field data to values other than Null. Type a value appropriate for the data type or press ESC to cancel the change."

    I have tried to set the appopriate format for the GraphicID field and it doesn't seem to matter where I set it won't let me input anything and gives me the same message over and over again.

    If anyonw could help it would be most appreciated.

    Thanks in advance,

    • Moved by jack 321 Tuesday, June 24, 2008 6:16 AM off topic
    Thursday, June 19, 2008 8:52 PM


All replies

  • We need more information to answer your question. What is the GraphicID field? Where does it show up? What control is it on? How is it defined?

    Ron Whittle
    Friday, June 20, 2008 5:18 AM
  •  For questions and discussions regarding data controls such as the DataGridView, and connecting your Windows Forms app to data, please see http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=7&SiteID=1

    Friday, June 20, 2008 2:10 PM

    Thanks for the replies you guys I really appreciate it.


    The GraphicID field  corresponds  with the images in the listview control.  I’m trying to tie it to the corresponding imagelist position somehow i.e., 0, 1, 2. When I try to enter anything especially the numeric value in the field it gives me the above error. As far as how it’s defined, I’m not sure like I said before I’ve tried everything from image to varbinary and it doesn’t work. The only time it works is if I set it in int then it will let me imput info. Otherwise, it won’t let me do a thing.

    Again any help would be appreciated. Thanks


    Go to this link to see the code:


    Saturday, June 21, 2008 12:47 AM
  • This was moved to the Off Topic forum. If you want me to move your question into another forum, let me know where you want it moved to.


    Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)

    Sunday, May 13, 2012 3:58 AM