Questions tagged [datagridcolumnheader]

Represents a header of DataGridColumn

Learn more about DataGridColumnHeader on MSDN.

58 questions
6
votes
2 answers

WPF 4: What happened to DataGridColumnHeader?

What happened to DataGridColumnHeader? It looks like it was dropped when the DataGrid was moved into PresentationFramework.
Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447
4
votes
2 answers

Binding DataGrid Column DataTemplate to Attached Property

I am trying to customize a DataGridColumnHeader to show multiple text fields instead of showing only the header text provided by DataGridColumn.Header property. If i didn't miss something, i just have to create a DataTemplate and bind to the…
LaWi
  • 71
  • 1
  • 1
  • 6
3
votes
1 answer

How to get Data Grid column index on right click? MVVM WPF

I want to get column Index and pass it by CommandParameter I have, in a context menu for Data grid column header.
IBRA
  • 1,502
  • 3
  • 24
  • 56
3
votes
1 answer

Making a WPF DataGrid repeat Column Headers under each group header

I'm using grouping in WPF (via PropertyGroupDescription in a CollectionViewSource) and displaying the grouped collection in a bound DataGrid. Typically (as in this MSDN Example) such a DataGrid will display the column headers, followed by each group…
FTLPhysicsGuy
  • 1,035
  • 1
  • 11
  • 23
2
votes
0 answers

Increase FontSize and FontWeight of DataGridColumnHeader of a WPF dataGrid in Visual Studio 2017

The FontWeight of my DataGridColumnHeader is fine while developing in visual studio 2017 but once I launch the project, the text for the DataGridColumnHeader becomes faded. This is the same for the DataGridComboBoxColumn. TextColumns work fine…
2
votes
0 answers

Determine DataGrid header column offset

I have a programmatically created, dynamic DataGrid (.NET 4, WPF). Its header columns are resizeable and movable. Further, I have a kind of a ruler control which has some marks which have to move (and point exactly to the column middle) when the…
Petr Osipov
  • 621
  • 6
  • 16
2
votes
1 answer

How can I assign a custom UserControl to a DataGrid column header?

I am trying to make a datagrid with a custom header that has a textblock and a button. The textblock and button is represented by this UserControl I created:
1
vote
1 answer

Attached property in DataGridColumnHeader template not updating

What is my goal: I want to create a custom template for a column header in DataGrid - DataGridColumnHeader. This template is supposed to fetch data from the attached property (in a real program, these will be properties such as: indicator whether…
1
vote
2 answers

C# WPF DataGrid Column Header fitting TextBox into width

I've a DataGrid in my C# WPF application and styled the Columns Header with a Label/TextBlock and a TextBox as an instant filter beneath of it. My target is to fit the width of the TextBox into the width of the DataGridColumn, but I didn't found an…
A. Drews
  • 37
  • 7
1
vote
1 answer

Is it possible to hide the header cell in a DataGridView for specific columns?

I have a DataGridView which is populated from a DataTable. I then supplement this with additional DataGridViewImageColumn which will ultimately function as buttons for manipulating the data on any given row. What I want to know is, is it possible to…
1
vote
0 answers

How to bind dataTrigger to DataGridColumnHeader template

I'm working on a DataGrid with a custom sort implementation and the colomnHeader should display the sort direction, and the sort order. I'm using MVVM pattern. In my viewModel, I have an ObservableCollection of my sorters. Each sorter has a tag,…
Bisjob
  • 567
  • 7
  • 23
1
vote
1 answer

WPF Datagrid: How to clear column sorting by mouse click on the column header?

There're many answers about how to do this programmatically, but no one about via user interface.
huang
  • 919
  • 11
  • 22
1
vote
1 answer

Can't set both ContentTemplateSelector and Template properties on a DataGridColumnHeader

In short, the question title says it all. For those that want more detail, here is the crux of my problem: I need to apply a custom ControlTemplate to the DataGridColumnHeader elements in my DataGrid control, but I also need to style them…
1
vote
1 answer

DevExpress column standard showpop menu add custom copy item it'S under cells

I want to add a custom menu item into standard popshow menu, which copies first cell value column and copies to its under cells. It should copy just its under cells. I searched some things but couldn't find an example how to do. I found some…
1
vote
1 answer

How to change 'sort glyph icon' color in DataGridView of Windows Form C#?

I've changed the column header color by default. Now, I want to change the 'sort glyph icon' color in DataGridView of Windows Form C# when it gets sorted: See the above picture. The column is sorted but icon's color makes it's visibility…
JackXandar
  • 503
  • 1
  • 5
  • 14
1
2 3 4