1
I bring a Datatable from the database and fill in a gridview, need to leave some ROWS blank or with nothing, but the fields are numeric and do not accept string or other kind.
DataTable dt = ClassesControle.CNProduto.listaProdutos(null, usuario);
            foreach (DataRow row in dt.Rows)
            {
                if (Convert.ToDouble(row["PRECO"]) == 0.0)
                    row["PRECO"] = "";
             }
ERROR: Expected type is SINGLE (FLOAT).
Instead of putting
row["PRECO"] = "";experimentrow["PRECO"] = null;– CesarMiguel
I’ve tried, can’t accept it either!
– Gerson