locked
Help me to get out of this Exception RRS feed

  • Question

  • For this piece of code I am having exception

     picbxArticle.Image = (Image)(dgvArticles.Rows[e.RowIndex].Cells["articleImageDataGridViewTextBoxColumn"].Value);

     

    and exception is

    Unable to cast object of type 'System.Byte[]' to type 'System.Drawing.Image'.

     

     

     

    kindly help me to remove this one.

     

    Thanks

    Wednesday, June 22, 2011 3:02 PM