I have a problem about Datagridview cell formatting. I'm adding my example codes below,i tried many percentage formats about this but it is not working anymore. Where is the problem, can you help me?
private void button1_Click(object sender, EventArgs e)
{
DataTable tb = new DataTable();
DataRow row = tb.NewRow();
tb.Rows.Add(row);
tb.Columns.Add("Column1");
tb.Rows[0][0] = "45";
dataGridView1.DataSource = tb;
dataGridView1.Columns[0].DefaultCellStyle.Format = "#.000\\%";
}