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

[Solved] Selectively removing column filter icon and non-blend header styles

1 Answer 127 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Philip
Top achievements
Rank 1
Philip asked on 15 Jul 2009, 07:22 PM
Hello,

I have two questions today. Allow me to explain the situation. Currently the requirements for the present grid involves a single empty column to act as a visual separator between two parts of our grid. Preferably this column would be completely black, from header down to the bottom of the grid.

It is a simple matter to insert an empty column within our dynamically created grid using the columns' insert command, and it is also easy enough to make the column body black, mimicking a kind of divider. After that, however, things get a bit more complicated, and I hoped I could find some answers for the good people here.

The first problem is that this empty column has a filter icon in the header that is not wanted, and I have as of yet discovered a way to remove it. The other columns have the icon, and this is as desired, but I want to remove the one from the empty column without affecting the rest of them.

The second problem involves styling the headers across the entire grid. The empty column header will be black, but the other two sections of the grid will have different colors as well. I know there is a tutorial on how to do this in Blend, but because of the complex nature of the project blend isn't really an option for this. Is there a way available to do it in Xaml or C#?

Thanks to everyone for their time,

Philip Coffey

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Jul 2009, 01:36 PM
Hi Philip,

Generally if you add GridViewColumn instead GridViewDataColumn you will not get sorting, filtering and other data column related behavior. You can still customize / design the style using Blend however you will need to add dynamically this style to the column HeaderCellStyle property.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Philip
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or