This is a migrated thread and some comments may be shown as answers.

Edit multiple columns gridview(winforms)

1 Answer 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 15 Nov 2016, 10:22 PM
Hi. I have a gridView with several columns ( "column1", "column2", "columns3", "column4"). The gridview has the AllowEditRow property to False. And I have in the form a checkbox which when I check it (Checked = true), I want to activate the editing of the columns "column2" and "column4 only.
Thank you

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 16 Nov 2016, 09:39 AM
Hello Oscar,

Thank you for writing.

Each column has a ReadOnly property and you can use it to disable the editing for particular columns only:
radGridView1.Columns[2].ReadOnly = true;

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
GridView
Asked by
Oscar
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or