Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Customize header appearance

Sort Posts: Previous Next
  •  06-19-2008, 5:26 PM Post no. 13097

    Customize header appearance

    Hello,

    How can I customize the appearance of the header? I need display it in ellipsis instead of rectangles.

     

    Thanks,

     

    Pati

    Filed under:
  •  06-21-2008, 7:16 AM Post no. 13132 in reply to 13097

    Re: Customize header appearance

    Hi Pati,

    You can use a data template to modify the way column headers are displayed.

     <!-- Data Template for Xceed Column-->
    <DataTemplate x:Key="colTemplate">
     
    <Label Content="{xcdg:CellEditorBinding}" TextBlock.FontWeight="Bold" />
    </DataTemplate>

    And you have to apply this to each and every column, either in xaml like: 

     <xcdg:Column FieldName="AnyThing" TitleTemplate="{StaticResource colTemplate}" />

    or in code behind like:

    foreach(Column col in myXceedGrid.Columns)
    {
         col.TitleTemplate = (DataTemplate)this.FindResource("colTemplate");
    }

    I am having problem in automating this application of template to columns. Please follow : http://xceed.com/CS/forums/thread/13043.aspx

    Regards,


    Abdullah Ansari
    Senior Software Engineer
    Outworks Solutions Private Limited

    Everything is okay in the end. If its not okay, then its not the end.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.