Linked Questions

Popular Questions

I have a datagridview with its ReadOnly set true to prevent people editing.

then I have a button on each row. when I click on a specific button, I wrote:

private void DGGrade_CellClick(object sender, DataGridViewCellEventArgs e)
        if (e.RowIndex > 0 && e.ColumnIndex == DGGrade.Columns["Edit"].Index)

            DGGrade.Rows[DGGrade.CurrentCell.RowIndex].ReadOnly = false;

            DGGrade.Rows[DGGrade.CurrentCell.RowIndex].DefaultCellStyle.BackColor = Color.White;

But it is not working. please help

Related Questions