Questions tagged [datagridtemplatecolumn]

Represents a DataGridColumn customizable implementation

Learn more about DataGridTemplateColumn on MSDN.

275 questions
2
votes
2 answers

WPF DataGridTemplateColumn, bind to generic CellTemplate

I'm very new to WPF so sorry if this is obvious but I can't seem to find any decent examples on the internet showing how it's done. I have a DataGrid which is bound to a collection of DataItem called MyCollection. I want to create a generic…
magritte
  • 7,396
  • 10
  • 59
  • 79
2
votes
1 answer

How come DataGridTemplateColumn Visibility Hidden doesn't allocate space for the column?

I have the following DataGridTemplateColumn:
Bob.
  • 3,894
  • 4
  • 44
  • 76
2
votes
1 answer

Pass whole row as parameter of DataGridTemplateColumn Hyperlink

Is it possible to pass a whole row as a parameter for the Hyperlink of DataGridTemplateColumn?
wipindipy10
  • 150
  • 1
  • 1
  • 8
2
votes
2 answers

Textblock textwrapping not working

Can somebody give me an idea of why the Wrapping is not working inide these Textblocks? I just don't know why, i changed all my stackpanels to grids to avoid the infinite space issue, but still it doesn't work...
Carlos H
  • 694
  • 1
  • 7
  • 16
2
votes
1 answer

User Control in DataGridTemplateColumn

I have a datagrid in which I rotated everything 90 degrees to show my info vertically. Not that that has to do with anything I don't think. I'm trying to add a UserControl which is basically an Expander into a DataGridTemplateColumn. The problem I'm…
TMan
  • 4,044
  • 18
  • 63
  • 117
1
vote
0 answers

Force DataTemplateCell with CellTemplateSelector in WPF DataGrid Autogenerated columns

I have a data grid to which I bind a DataTable. I don't know what rows or columns will be in the data table so I set the AutogenerateColumns property of the data grid to true. The only thing I do know for certain is that every cell in the data table…
lace.john
  • 1,051
  • 2
  • 17
  • 22
1
vote
1 answer

DataGridTemplateColumn with CheckBox

I have a dynamic DataGrid in which one of the columns is a CheckBox. I created a "Transactions" class in which I bind the columns of the datagrid to different properties in that class. I want my checkbox to be binded to a Property which is an…
Eric R.
  • 1,105
  • 3
  • 21
  • 48
1
vote
0 answers

How to modify DatagridTemplateColumn header content runtime in Silverlight?

I defined the DataGridTemplateColumn.HeaderStyle as resource.