Questions tagged [celltemplate]
91 questions
0
votes
2 answers
c# WPF CellTemplate / DataTemplate for an Image list / array
What I have:
my class:
public class MyImage
{
public String ImagePath { get; private set; }
public String Name { get; private set; }
// ...
}
XAML:

slaesh
- 16,659
- 6
- 50
- 52
0
votes
1 answer
c# WPF TreeView in ListView via CellTemplate
I am new to WPF and XAML..
I want to add an TreeView into a ListView Element with a CellTemplate..
I want to bind each ListViewItem to a Custom class called "Symbol"
This Class has an Property called "Name" and a Property called "Images".
"Name" is…

slaesh
- 16,659
- 6
- 50
- 52
0
votes
1 answer
Wrap Text in ng-grid Cell Template?
I have some text I displayed as following:
columnDefs: [
field: "text", displayName: 'Text', width:'20%',
cellTemplate: '
{{text.name}}{{$last ?…

user3403666
- 61
- 3
- 10
0
votes
1 answer
CellTemplateSelector for .NET 3.5 DataGrid is passed DataRowView and not cell contents
I am using the DataGrid that comes in the WpfToolkit for .NET 3.5. I am displaying DataTable. I want negative amounts to be red. The number of columns is variable so AutoGenerateColumns is True.
Following the advice here…

Andy Powell
- 583
- 1
- 6
- 15
0
votes
1 answer
ng-grid cellTemplate and grouping: can I change the template for the 'grouping' row
I have been checking out ng-grid, and changed the columnDefs to use a different cellTemplate for certain columns. This template doesn't show the actual value but looks it up in another object, in order to make it more readable for an end-user…

MrFT
- 96
- 3
- 10
0
votes
1 answer
Cannot select again radio in wpf datagrid (radio when editing, image when non editing)
I have a wpf datagrid with cell editing/non editing templates.
I alternatively show a radio button (edit mode) or an image (non edit mode).
Image is visible when radio is checked (binded property is true).
Radio are all grouped. Both…

barbara.post
- 1,581
- 16
- 27
0
votes
1 answer
DataGridTemplateColumn InvokeCommandAction Template
I'm using a UserControl where the main control inside is a datagrid.
All is working.
However, some lines of my code are redundant since I implement the same trigger in each of the 48 columns.
How do I make a template for the datagridtemplatecolumn…

eemwingg
- 15
- 7
0
votes
1 answer
TextBox inside a listview cell
I have a listview that I would like to add a textbox inside each gridview column cell so I can type data into it and then fetch that data.
I'm creating a datatemplate and passing it to a cell template for the GridViewColumn but when I look at the…

chuckd
- 13,460
- 29
- 152
- 331
0
votes
1 answer
Setter in DataTemplate Target parent Element (Influence DataGridRow from CellTemplate)
i need to collapse the current DataGridRow based on a cell's DataContext value ,
…

eran otzap
- 12,293
- 20
- 84
- 139
0
votes
1 answer
Reusing data template for multiple types?
I have the following DataTemplate for displaying the full name of a User instance:
0
votes
3 answers
Fetch WPF Datagrid Row for all the selected checkboxs in DataGridTemplate column
I have a DataGrid which display few roster info of the Employees. I have added a template column with a CheckBox. I want to get the KeyIDs (which is binded from DB) from all the rows of selected (CheckBox selected) Rows. These KeyIDs I have to pass…

Deepu Nair
- 1
- 2
0
votes
1 answer
Set entire selected DataGrid row template to CellEditingTemplate
I have a question regarding WPF DataGrid. For the sake of IDataErrorInfo validation I would like to set the entire selected row as editing - by that I mean setting every cell's (in that row) data template from CellTemplate to…

dabor
- 127
- 1
- 3
- 13
0
votes
1 answer
How to solve generic ComboBox representation in a generic GridView
I have a DataGrid in a user control (DataGridView). This usercontrol propagates a binding to DataGrid's ItemsSource from anywhere in the application and fills it with List of K.
For this example lets define clas for K that has some properties with…

nzic
- 184
- 9
0
votes
1 answer
Binding properties to CustomDataTemplate
I have a list of items
public List- MyItems { get; set; }
displayed on the DataGrid. One column shows status "icon" which is defined by template.
Code looks something like that:
Column template [...]

Novitzky
- 4,756
- 3
- 23
- 27
0
votes
1 answer
Combine CellEditingTemplate CellTemplateSelector DataGrid
I would like to apply CellTemplateSelector to a CellEditingTemplate. Can they be combined?
This is them separate
…

paparazzo
- 44,497
- 23
- 105
- 176