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
130
Bind IsEnabled Property of DataRecord to a property
posted

Hello,

I want to bind my Custom property to IsEnabled property of DataRecord of xamDataGrd.

Is there any way to do this? Can I do it using Style or something?

Thanks & Regards,

Abdi

Parents
No Data
Reply
  • 16495
    Offline posted

    Hello Abdeali,

    You can create a style for DataRecordPresenter in the resources of XamDataGrid and by using a Setter you can bind it’s IsEnabled property to your custom property:


    <Style TargetType="{x:Type igWPF:DataRecordPresenter}">
        <Setter Property="IsEnabled" Value="{Binding Source={StaticResource vm},Path=Enabled}"/>
    </Style>

    I have attached simple project where you can see this approach.

    Please let me know if you require any further assistance regarding this matter.

    Sincerely,
    Zhivko
    Entry Level Software Developer

    DRPIsEnabled.zip
Children