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
45
How to hide specific template column's Header in xamgrid?
posted

HI,

How to hide specific template column's header in xamgrid  ? 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. i want column with blank header label. 

Many Thanks

VN

  • 6365
    Offline posted

    Hello VN,

    Presuming that you would like to collapse the header cell of a template column entirely, I can suggest you set the Visibility property of its respective HeaderCellControl to Collapsed through the HeaderStyle.

    <ig:TemplateColumn.HeaderStyle>
        <Style TargetType="igPrim:HeaderCellControl">
            <Setter Property="Visibility" Value="Collapsed" />
        </Style>
    </ig:TemplateColumn.HeaderStyle>

    If you would like to remove the text from the header only, you can use the HeaderText property of the TemplateColumn.

    I have attached a sample application that demonstrates the approach from above.
    If you have any questions, please let me know.

    XamGrid_sample.zip