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
465
XamDataGrid - How to Collapse a field in a row in XAML?
posted

Hi,

 

I would like to do the equivalent of this in XAML:

XamDPCashflowModels.FieldLayouts[0].Fields[

"LoanName"].Visibility = Visibility.Collapsed;

I have created a Style in XAML

 

<

 

Style x:Key="collapsedFieldStyle" TargetType="igDP:LabelPresenter">
    <Setter Property="Visibility" Value="Collapsed"/>
</Style>

 

<

 

igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:Field Name="LoanName" Label="LoanName">
<igDP:Field.Settings>
<igDP:FieldSettings LabelPresenterStyle="{StaticResource collapsedFieldStyle}"/>
</igDP:Field.Settings>
</igDP:Field>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>

However it doesnt work. What am I doing wrong?

Many Thanks