Details View: Column Header Appearance

2 posts, 0 answers
  1. Doug
    Doug avatar
    50 posts
    Member since:
    Jul 2012

    Posted 02 Jul 2013 Link to this post

    I put a ListView with ViewMode.DetailsView next to a GridView.  I made one of the two columns not visible.  I'd like the visible column's column header to have the same appearance (color) as the column headers in that GridView.  How do I do that?

    Thank you,
    Gary
  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 04 Jul 2013 Link to this post

    Hello Gary,

    Thank you for writing.

    You can create RadGridView like columns style using the Visual Style Builder tool. You can find how to use this tool in the following topics:
    The easiest way to use Visual Style Builder is to make a copy of ControlDefault theme to work with. Also I am using the following code to open the new theme in the project:
    ThemeResolutionService.LoadPackageFile(@"C:\Themes\MyTheme.tssp");
    ThemeResolutionService.ApplicationThemeName = "MyTheme";

    Once we have a theme in Visual Style Builder to work with, there are a few easy steps to make the columns:
    • Right click the RadListView and select DetailsView mode
    • Expand RadList, RadListViewElement, and DetailListViewElement
    • Select DetailListViewHeaderCellElement
    • Choose appropriate values to BackColor properties 
    • Save the theme and observe the result.
    Also I have attached some pictures to illustrate the steps.

    I hope this helps. Should you have any other questions do not hesitate to ask.

    Regards,
    Mitko
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top