Hi,
I know that <igDP:FieldLayoutSettings LabelLocation="Hidden"/> hides all labels of the headers. But how do I hide only one header for a certain column? (In xaml) I dont want to hide the whole column by Visibility.Collapsed, I would like only to get rid of the header and leave the column content there.
UPDATE: If there is no way to do that in XAML, I am also happy to do this in code. Please help!
<
Many Thanks,Houman
Hi Houman,
You can hide the label of a specific field by setting the LabelPresenterStyle. This is the sample code:
<igDP:Field Name="name">
<igDP:Field.Settings>
<igDP:FieldSettings>
<igDP:FieldSettings.LabelPresenterStyle>
<Style TargetType="igDP:LabelPresenter">
<Setter Property="Visibility" Value="Hidden"></Setter>
</Style>
</igDP:FieldSettings.LabelPresenterStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>
Hope this helps.
Thanks,
Diyan Dimitrov
Hi Diyan,
Unfortunatelly it didnt work.
I tried this:
igDP:FieldSettings CellValuePresenterStyle="{StaticResource iconFieldCell}" LabelPresenterStyle="{Binding hiddenFieldStyle}">
While the style is:
Style x:Key="hiddenFieldStyle" TargetType="igDP:LabelPresenter"> <Setter Property="Visibility" Value="Hidden"/> </Style>
Am I doing something different than your suggestion?
Many Thanks,