I am trying to change the type of a column from a numeric to a lowercase one, but it does not work. What could be the problem ?
The data is pulled from the database Mysql, the field type is "type" smallint (1)
kontr_dg - DataGridView
kontr_dg.Columns["type"].ValueType = typeof(string); string _typeID = kontr_dg.Rows[i].Cells["type"].Value.ToString(); string _type = core.kontr_type(_typeID); kontr_dg.Rows[i].Cells["type"].Value = _type.ToString(); //Перевод числа в строку public string kontr_type(string type) { string _type; if (type == "1") _type = "Заказчик"; else _type = "Перевозчик"; return _type; } 