Feroz Khan

Feroz Khan

  • 1.1k
  • 292
  • 86.3k

How can i Datagridview column format

Jun 30 2016 10:01 AM
Hi All, 
 
I want try to set format of datagridview column through below code
 but its showing error {"Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"} 
 
InitializeComponent();
this.dataGridView1.Columns[8].DefaultCellStyle.Format = "0.0";
 

Answers (2)