Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void dgvForecastData_CellClick(object sender, DataGridViewCellEventArgs e)
- {
- if (GridRowIndex >= 0)
- {
- dgvForecastData.Rows[GridRowIndex].Cells["Forecast or Current Year Actual"].ReadOnly = true;
- string sActForecastIndicator = dgvForecastData.Rows[GridRowIndex].Cells["Actual/Forecast Indicator"].Value.ToString().Trim();
- if (sActForecastIndicator == "F" || sActForecastIndicator == "AF" && !dgvForecastData.Rows[GridRowIndex].Cells["Non recurring"].ReadOnly)
- {
- dgvForecastData.Rows[GridRowIndex].Cells["Forecast or Current Year Actual"].ReadOnly = false;
- }
- }
- }
Add Comment
Please, Sign In to add comment