internal void SetGoalProfilevalue(double v) { if (_dtCurrentStaus == null || _dtCurrentStaus.Columns.Count == 0) { _dtCurrentStaus = _csGoal.CurrentStatusToGoalCalculation(_plannerId); } if (_dtCurrentStaus != null) { DataRow[] dr = _dtCurrentStaus.Select(string.Format("Goal = '{0}'", _goal.Name)); if (dr != null && dr.Count() > 0) { dr[0]["CurrentStatusMappedAmount"] = v; } } }
private void getGoalStatus() { CurrentStatusToGoal csGoal = new CurrentStatusToGoal(); _dtCurrentStatustoGoals = csGoal.CurrentStatusToGoalCalculation(_planeId); dtGridCurrentStatusGoals.DataSource = _dtCurrentStatustoGoals; dtGridCurrentStatusGoals.Columns[2].DefaultCellStyle.Alignment = DataGridViewContentAlignment.BottomRight; dtGridCurrentStatusGoals.Columns[3].DefaultCellStyle.Alignment = DataGridViewContentAlignment.BottomRight; //dtGridCurrentStatusGoals.Columns[4].DefaultCellStyle.Alignment = DataGridViewContentAlignment.BottomRight; dtGridCurrentStatusGoals.Columns[0].Visible = false; dtGridCurrentStatusGoals.Columns[1].Width = 220; dtGridCurrentStatusGoals.Columns[2].HeaderText = "Current Status Fund Allocated"; dtGridCurrentStatusGoals.Columns[3].HeaderText = "Surplus Fund"; //dtGridCurrentStatusGoals.Columns[4].HeaderText = "Excess Fund"; fillCurrentStatusToGoalData(); }