[AreaCode] 15,00 € 25,00 € 60,00 €
[AreaCode] 15 25 60
private void dgv1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { var columnname = "AreaCode"; if (e.ColumnIndex == dgv1.Columns[columnname].Index) { //Get the datagridview cell DataGridViewCell cell = dgv1.Rows[e.RowIndex].Cells[e.ColumnIndex]; if (cell != null) { this.dgv1.Columns["AreaCode"].DefaultCellStyle.Format = "D4"; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)