Questions tagged [celltemplate]
91 questions
1
vote
1 answer
How can we allow user to Add/Edit/Delete records from WPF gridview control in different ways?
In WPF xaml page I want to provide user one combobox in which there will be two options:
(1) Allow user to edit in gridview
(2) Allow user to edit in form
If the user selects first option, then I want the user to allow adding/editing records in…

techfun
- 913
- 2
- 13
- 25
1
vote
1 answer
DataGridView CellTemplate setting not working properly
I try for hours to create templates for columns created dynamically.
Here's the code (It's not from my main project but I simplified the code to reproduce my issue) :
First, I created a class containing the Column setting :
public class…

metalcam
- 392
- 2
- 16
0
votes
1 answer
Get CellTemplate binding from GridViewColumn
So, I have this ListView that needs to use some custom compare functions depending on what is bound.
Right now the only solution I have found so far is to have a custom property to declare (SortablePropertyName) what has been used as binding source,…

Jonas Lindahl
- 752
- 10
- 24
0
votes
1 answer
How to set cell template element's dependency property upon row selection
I have a custom UI element inside a CellTempate (VsInputControlNumeric). I want to set this element's IcFontColor property using a trigger when it's row is selected.

Marcin
- 131
- 6
0
votes
2 answers
Add Custom Template To ListView - GridView WPF?
I currently have this XAML Code:
…

Sandeep Bansal
- 6,280
- 17
- 84
- 126
0
votes
1 answer
WPF vb.net Apply different button to rows in datagrid
I am creating a column in my DataGrid with
In my code, I am adding rows to the columns in my grid using
Public Structure MyRow
…

Navvy
- 237
- 3
- 9
- 23
0
votes
1 answer
ui-grid rowTemplate: how to dynamically change row color based on column data
I have a server data embedded with values that determine the row-color.
var ngBody = angular.module ('BodySpace', [
'ui.grid', 'ngSanitize', 'ngResource'
, 'ui.grid.selection', 'ui.bootstrap'
,…

Jenna Leaf
- 2,255
- 21
- 29
0
votes
1 answer
binding celltemplate in wpf
i just create a GridControl from devexpress and all cell programmatically
and bind its ItemsSource in this way
var gridControlAzmayesh = new GridControl
{
View = tv,
ItemsSource = new…

sadati
- 115
- 1
- 1
- 9
0
votes
1 answer
How to fire checkbox checked event when column binding is done in code behind?
I have a data grid, where I create columns on the fly in the code behind. As I create the column, I create associated cell template and cell edit template to convert the value to boolean to represent the data in check box. All works well. What I…

Nair
- 7,438
- 10
- 41
- 69
0
votes
2 answers
Apply CellTemplate to DataGrid bound to dynamic DataTable
My application builds a datatable (rows & column) at runtime, so the columns/properties are variable.
Now I'm displaying it in a datagrid & trying to set CellTemplate and unsuccessfully binding each cell value. It shows values correctly before…

ctalley5
- 77
- 3
- 13
0
votes
1 answer
WPF Dynamic change of GridViewColumn CellTemplate c#
I'm trying to learn something about the ListView and now I'm solving this problem:
I have a listview defined in the behindcode. I would like to change gridviewcolumn celltemplate dynamically. For example by the use of checkbox or button, or other.…

Pavel Etrich
- 69
- 2
- 9
0
votes
1 answer
GridViewColumn with no cells?
Is it possible to have 3 GridViewColumn but only 2 CellTemplate ?
I want the first cell to "occupy" the 2 left columns ?
Is it possible ?

Pacman
- 2,183
- 6
- 39
- 70
0
votes
1 answer
Double Values in listView cell
I need to show old and new values in my ListView, when the record is changed.
I mean each cell should show new value and old value.
For now I'm doing so:

Alex Blokha
- 1,141
- 2
- 17
- 30
0
votes
1 answer
Why grid.appScope.value return undefined in celltemplate
In a grid celltemplate, I am trying the get a value which is in the parent scope of a grid like this
but grid.appScope.typeFlux is undefined. So how…

Gabistic
- 53
- 8
0
votes
1 answer
Binding UI Grid row data to javascript call in cellTemplate
I want to call a javascript function from a UI-Grid cellTemplate, passing some of the row's entity values as parameters.
If I call the function directly from the href it gets the 'unsafe' prepended.
If I call it from the onclick attribute it does…

Matt W
- 11,753
- 25
- 118
- 215