I have a Datatable from the database and I fill in a gridview , I need to leave some ROWS
blank or nothing, but the fields are numeric and do not accept string or other type.
DataTable dt = ClassesControle.CNProduto.listaProdutos(null, usuario);
foreach (DataRow row in dt.Rows)
{
if (Convert.ToDouble(row["PRECO"]) == 0.0)
row["PRECO"] = "";
}
ERROR: The expected type is SINGLE (FLOAT).