private void dgv_TableTarification_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0) //le click sur la cellule else le header n'entraine pas une exception return; if (e.ColumnIndex < 0) return; //if (e.ColumnIndex != 1) // return; if (this.dgv_TableTarification.CurrentCell.ColumnIndex == 0) { this.dgv_TableTarification.Rows[e.ColumnIndex].Cells["C_Tarif"].Selected = false; this.dgv_TableTarification.Rows[e.ColumnIndex].Cells["C_RELAIS"].Selected = false; } }
private void dgv_TableTarification_DefaultValuesNeeded(object sender, DataGridViewRowEventArgs e) { e.Row.Cells["C_Tarif"].Value = string.Empty; e.Row.Cells["C_RELAIS"].Value = string.Empty; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)