Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
615
when datagrid is enabled=false, is there a way to still have the vertical scrollbar enabled=true?
posted

I have a xamdatagrid that the user can edit add rows to. There is a view-only and edit mode. When the xamdatagrid is not enabled, is there a way to keep the vertical scroll bar active? The user needs to scroll through list even when it can't be edited

  • 35319
    posted

    Hello,

     

    I am just checking if you require any further assistance on the matter.

  • 35319
    posted

    Hello,

     

    Thank you for your post. I have been looking into your question and instead of setting the ‘IsEnabled’ property of the XamDataGrid to ‘false’, I can suggest you apply the following styles :

     

    <Style TargetType="igDP:DataRecordPresenter">

                        <Setter Property="IsEnabled" Value="False"/>

                    </Style>

                    <Style TargetType="igDP:LabelPresenter">

                        <Setter Property="IsEnabled" Value="False"/>

                    </Style>

     

    This way the control will not be editable and the scrolling will work.

     

    Let me know, if I can assist you with something else on this matter.