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
How to hide a single header label?
posted

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!

<

 

igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields>
<igDP:Field Name="IsVirtual" Width="15">
<igDP:Field.Settings>
<igDP:FieldSettings CellValuePresenterStyle="{StaticResource iconFieldCell}"/>
</igDP:Field.Settings>
</igDP:Field>
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>

 

Many Thanks,
Houman

Parents
No Data
Reply
  • 2180
    Verified Answer
    Offline posted

    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

     

Children