RadGridView row readonly binding

2 posts, 1 answers
  1. RSquired
    RSquired avatar
    12 posts
    Member since:
    Apr 2012

    Posted 30 Mar Link to this post

    how to make a row read only in radGridView through binding.  Here is the Grid View I use. I have bind IsReadOnlyProperty. Which is in MemberList. But this does not take effect. Columns are dynamically binded. 

                                         AutoGenerateColumns="False"  CanUserSortColumns="False"
    CanUserReorderColumns="False"                                              SelectionMode="Single" SelectionUnit="FullRow" CanUserSelect="True" ShowGroupPanel="False"
    IsSynchronizedWithCurrentItem="False" RowIndicatorVisibility="Collapsed"
    IsReadOnly="{Binding IsRemoved}">

                                        <commonViewModel:GridColumnsBindingBehavior Columns="{Binding Columns,Mode=TwoWay}"/>


  2. Answer
    Stefan Nenchev
    Stefan Nenchev avatar
    242 posts

    Posted 31 Mar Link to this post

    Hi Roshan,

    You need to set the IsReadOnlyBinding property of the column and not of RadGridView. Please check the following article - ReadOnly Rows and Cells. The "IsReadOnly" property you have used is applied for the whole RadGridView. There is a demo in our SDK Samples browser - Read Only Binding - which you can check as well.

    Stefan Nenchev
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft banner
Back to Top