That's the full error? It doesn't give you a filename and line number?
I'm gussing it's this line:-
imgcol=(DataGridViewImageColumn)dataGridView.Columns[14];
and that column [14] is a text column and that you intended to use a different column.
Why on earth are you addressing columns by ordinal number anyway? Its prone to causing erorrs just like this one...