I am trying to convert a DataGridView cell to a control:
Control dat = new Control();
dat = Convert.ChangeType(dataGridView1[colIndex,rowIndex], typeof(Control));
I am fetching the values of colIndex and rowIndes from a index code. The problem is even though I tried many codes to convert, it does not work.
The exception I am getting is:
Can not implicitly convert an object to a control. An explicit convertion exist(are u missing a cast?)