Edit multiple columns gridview(winforms)

2 posts, 0 answers
  1. Oscar
    Oscar avatar
    6 posts
    Member since:
    Aug 2016

    Posted 15 Nov 2016 Link to this post

    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
  2. Dimitar
    Admin
    Dimitar avatar
    2951 posts

    Posted 16 Nov 2016 Link to this post

    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.
Back to Top