I am loading an excel report into a datagrid view cell. It contains all type of data, like float, int, string etc.
Further I want to change the datatype of each "Cell" data, as string. For this I am looping all rows and columns, and using below command to set the "string" type in C#.
But still I am not getting success. Can you check and suggest the way to do it.
dgvTestWindow[ColumnIndex, RowIndex].ValueType = typeof(string);
Thanks in advance..