//i: your column //dtgrd: your DataGridView dtgrd.Columns[i].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; dtgrd.Columns[i].DefaultCellStyle.Format = "#,##0";
Coding is one of my job from 2001. I have written codes for many projects but I cannot remember all of them. I hope this blog help me do that.