Dear all i have 7 tables of COA as show in the picture attached. what i need is whenever opening balance goto - (negative) , the type must automatically show CR sign and whenever that account goto positive + , it must change to DR automatically
private void dataGridView1_CellValidated(object sender, DataGridViewCellEventArgs e) { var cell = this.dataGridView1[e.ColumnIndex, e.RowIndex]; float n; if (float.TryParse(cell.Value.ToString(), out n)) { if (n < 0) { cell.Value += " CR"; } else { cell.Value += " DB"; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)