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

Overriding Default MaxHeight for DataRow on TableFlowView

Sort Posts: Previous Next
  •  06-25-2010, 2:53 AM Post no. 27286

    Overriding Default MaxHeight for DataRow on TableFlowView

    Goodmorning,

    we are using wpf datagrid 3 months now and we are very satisfied with the perfomance and all it's goodies!!

    The problem we are facing is that we have a slider bound to the FontSize of the DataGridControl and everything works well except of the Height of the DataRow, which is constant 30, and the content of the cells is hiding when the value becomes very big! When i try include a resource dictionary with the Style of Datarow and a setter for MaxHeight it gets the value, from the visualizer of Visual Studio 2010 i can see that the style value of MaxHeight is 100 but it keeps the MaxHeight 30!! The FilterRow behaves normally, when i change the font the Height resizes...So our conclusion is that something overrides value 100 with the value of 30!Is it anything that we should do??My code is that :

     

     <xc:DataGridControl Grid.Row="1" Width="Auto" Name="_DataGridControl"

    TextElement.FontSize="{Binding Path=FontSize, ElementName=_ScaleFontContent, Mode=OneWay}"

    AutoCreateColumns="False" Margin="2" ItemScrollingBehavior="Immediate" AllowDetailToggle="True"

            NavigationBehavior="RowOnly" ReadOnly="False" CellEditorDisplayConditions="RowIsBeingEdited, RowIsCurrent"                                      

            EditTriggers="ClickOnCurrentCell, SingleClick, ActivationGesture">                                      

    <xc:DataGridControl.Resources>                     

     <Style x:Key="{x:Type xc:ScrollTip}" TargetType="xc:ScrollTip">

                                                <Setter Property="HorizontalAlignment" Value="Center" />

                                                <Setter Property="VerticalAlignment" Value="Center" />

                                   </Style>                     

                               </xc:DataGridControl.Resources>

                                    <xc:DataGridControl.View>

                                          <xc:TableflowView ShowRowSelectorPane="True" x:Name="_TableflowView" ColumnStretchMinWidth="10"

                                               ShowFixedColumnSplitter="True" RowFadeInAnimationDuration="300"

                                               ScrollingAnimationDuration="750"  ShowScrollTip="True" AllowRowResize="True">

     <xc:TableflowView.FixedHeaders>

                                                    <DataTemplate>

                                                         <xc:FilterRow>

                                                        </xc:FilterRow>

                                                     </DataTemplate>

                                                   </xc:TableflowView.FixedHeaders>

                                       </xc:TableflowView>

                         </xc:DataGridControl.View>

     </xc:DataGridControl>

     

    Thanks in advance :) 

  •  06-30-2010, 2:53 AM Post no. 27339 in reply to 27286

    Re: Overriding Default MaxHeight for DataRow on TableFlowView

    Is there any solution in my problem?Why FilterRow changes its Height?Why my MaxHeight 100, gets back 30?Something overrides it that i can't understand!

    I am waiting for an answer please.. 

  •  07-22-2010, 12:15 PM Post no. 27661 in reply to 27339

    Re: Overriding Default MaxHeight for DataRow on TableFlowView

    I am encountering the same type of issue  http://xceed.com/CS/forums/27660/ShowThread.aspx#27660

    I noticed in my case that swapping from TableFlowView to TableView resulted in correct style interpretation and row height came out correct. But I still do not know why the style works for one view type but not for the other.

  •  07-25-2010, 4:46 PM Post no. 27701 in reply to 27661

    Re: Overriding Default MaxHeight for DataRow on TableFlowView

    In TableflowView all rows must have the same height. This is a required technical constraint in order for the Smooth Scrolling in that view to function correctly. The only exception is for the rows that are in the grid's FixedHeaders.

    To change the height of the rows when using TableflowView, you must use the TableflowView.ContainerHeight property.

     


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
  •  09-27-2010, 7:11 AM Post no. 28833 in reply to 27701

    Re: Overriding Default MaxHeight for DataRow on TableFlowView

    Thank you very much for your help! :)
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.