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
250
URGENTT - specify different column heights for master and child grid
posted

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I have used following code, it set same height for parent column and child column

what i want to set different height to child column? Any ideas of how to do this???

 

 

<Style TargetType="{x:Type igDP:XamDataGrid}">

 

 

 

<Setter Property="GroupByAreaLocation" Value

="None"/>

 

 

 

<Setter Property="AutoFit" Value

="True"/>

 

 

 

<Setter Property

="FieldLayoutSettings">

 

 

 

<Setter.Value

>

 

 

 

<!--By default records not matching filter conditions are hidden. To keep them in view

and instead highlight filtered-in/filtered-out records (which we do above in the

DataRecordCellArea style), set the FilterAction to None.-->

 

 

 

<igDP:FieldLayoutSettings FilterAction="None" AutoGenerateFields="True" HighlightAlternateRecords="True" FilterUIType="LabelIcons" RecordSelectorLocation

="None"/>

 

 

 

</Setter.Value

>

 

 

 

</Setter

>

 

 

 

<Setter Property

="FieldSettings">

 

 

 

<!-- to set row height/width attributes CellMinWidth="100" CellMaxWidth="300" CellWidth="200" -->

 

 

 

<Setter.Value>

 

 

 

<igDP:FieldSettings CellClickAction="SelectRecord" AllowRecordFiltering="True" AllowEdit

="False"

 

 

LabelHeight="30"

 

 

CellMinWidth

="100"

 

 

ExpandableFieldRecordHeaderDisplayMode

="AlwaysDisplayHeader"

 

 

/>

 

 

 

</Setter.Value

>

 

 

 

</Setter

>

 

 

 

</Style

>

  • 69686
    posted

    Hello,

    Are you sure this is the correct xaml code? I can see nowhere CellHeight property being set. However, the FieldSettings will set the CellWidth, CellHeight, etc properties to all the Cells, no matter of their field layout, unless you set this somewhere else and that takes precedence. 

    In order to have different CellHeights for parent/child Cells, you can create a CellValuePresenter style, or DataRecordPresenter style and use a DataTrigger with a binding for that if the Record has parent or not, and apply different Cell Heights.