locked
An other 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

    Monday, June 20, 2011 7:16 PM