dataGridView failing to format and resize
Hello everyone.
I am having a problem resizing & defaultcellstyle formating my dataGridView
Below is the code am using
this.datagridview.columns[‘’column name”].defaultcellstyle.format = “n0”;
dataGridView.columns[“column name”].widith = 200;
Below is the error I am getting
“NullReferenceException was unhandled”