Questions tagged [datagridcolumn]

A class that presents a data column in a datagrid.

Learn more about datagridcolumn at MSDN.

128 questions
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

DataGridColumn binding only if object property is true

I'm currently facing a problem while trying to do some conditional binding in WPF. I've read up on the problem and it seems like "visibility" isn't really an option for DataGridColumns as it's not in the logicaltreeview. I currently have an object…
1
vote
1 answer

DataGridColumn binding in Code

I am searching a simple method through which i can bind my DataGridColumn with a Datatable columns on the fly. I should also be able to define the width of each column. Example :- If My program generates 5 columns in a datatable, so the DataGrid…
Megatron
  • 93
  • 1
  • 2
  • 8
1
vote
1 answer

Binding current columns header as text for a text block inside datatemplate

i am working with a silverlightdatgrid and i have a style for each column header as below