Welcome to the Xceed Community | Help
Community Search  
More Search Options

Derived TableflowView

Sort Posts: Previous Next
  •  09-29-2009, 8:01 AM Post no. 24211

    Derived TableflowView

    Hi,

    Is it possible to make a derived class from the TableflowView class?
    I have some default properties which are always set to the same value for all my grids.
    I want to avoid databinding them each and every time for every grid.
    So I created a derived class and set those properties in the constructor.
    When using that class, all my columns are gone???

    Am I doing something wrong?

  •  09-29-2009, 8:51 AM Post no. 24214 in reply to 24211

    Re: Derived TableflowView

    HI , JOB

    it is better to make a default style for with target type and put setter for the same to set the default properties.

    you can try the same.

     

    following is example for your referance.

    <Style TargetType="{x:Type xcdg:TableflowView}">

    <Setter Property="Theme">

    <Setter.Value>

    <xcdg:Office2007BlueTheme />

    </Setter.Value>

    </Setter>

    <Setter Property="UseDefaultHeadersFooters" Value="False" >

    </Setter>

    <Setter Property="IsAlternatingRowStyleEnabled" Value="True" >

    </Setter>

    <Setter Property="FixedColumnCount" Value="1" >

    </Setter>

    <Setter Property="IsColumnVirtualizationEnabled" Value="False" >

    </Setter>

    <Setter Property="VerticalGridLineBrush" Value="#9DCEFF">

    </Setter>

    <Setter Property="VerticalGridLineThickness" Value="1" >

    </Setter>

    <Setter Property="HorizontalGridLineBrush" Value="LightSkyBlue">

    </Setter>

    </Style>


    Pratik Gohil
  •  09-29-2009, 9:03 AM Post no. 24215 in reply to 24214

    Re: Derived TableflowView

    Hi Pratik,

    I can use a style indeed. Thanks for that!
    But that does not explain why my columns disappear when I use a derived TableflowView class.

  •  09-29-2009, 9:16 AM Post no. 24216 in reply to 24215

    Re: Derived TableflowView

    HI, Job

    yes i tried out the same one by deriving the TableflowView me too having same problem whole view is missing.

    let me know if you found the reason.

    thanx,

     


    Pratik Gohil
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.