This is a migrated thread and some comments may be shown as answers.

Details View: Column Header Appearance

1 Answer 198 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 02 Jul 2013, 05:15 PM
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

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 04 Jul 2013, 12:30 PM
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 >>
Tags
ListView
Asked by
Doug
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or