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
1253
Template column header style
posted

Hi,

I have the following xaml code:

<igGrid:TemplateColumn Key="Number" HeaderText="Serial No"  Width="150"  >
                                  
                                    <igGrid:TemplateColumn.ItemTemplate>
                                        <DataTemplate>
                                            <igEdit:XamWebMaskedEditor  x:Name="maskLic" ></igEdit:XamWebMaskedEditor>
                                           
                                        </DataTemplate> 
                                    </igGrid:TemplateColumn.ItemTemplate>  
                                </igGrid:TemplateColumn>

I would like to bold the Header text Serial No.  Can someone show me how?  Thanks!

 

Parents
  • 6475
    Verified Answer
    posted

    Hi,

    You can define a HeaderTemplate and customize it the way you like it.

    So in your case, your XAML should look something like this:

    <igGrid:TemplateColumn Key="Number" Width="150">

    <igGrid:TemplateColumn.HeaderTemplate>

    <DataTemplate>

    <TextBlock Text="Serial No" FontWeight="Bold" />

    </DataTemplate>                   

    </ig:TemplateColumn.HeaderTemplate>

    <igGrid:TemplateColumn.ItemTemplate ... />

    </igGrid:TemplateColumn>

     

    Hope that helps,

Reply Children
No Data