I’m using DataGridView with ColumnType = DataGridViewTextBoxColumn.
I have 3 columns. Column1, Column2, Column3.
For example:
Expand|Select|Wrap|Line Numbers
- Column1 Column2 Column3
- 1 AA AAA
- 2 BB EDIT
- 3 CC CCC
Here for example: i need to make the Column3’s second cell to be readonly=false.
So i cannot make any changes to (1, AA, AAA), (3, CC, CCC) and (2, BB). Need to make changes only EDIT cell.
I tried this code. CountR is the row in which EDIT values is there.
Expand|Select|Wrap|Line Numbers
- DataGridView1.Item(2, CountR).ReadOnly = False
Expand|Select|Wrap|Line Numbers
- DataGridView1.Rows(CountR).Cells(2).ReadOnly = False
Is there a way i can make some cells editable in column?
If you know how to do it, please help me. if you can provide an example, then that will be so helpful.
Thanks in Advance.