Questions tagged [datagridtemplatecolumn]

Represents a DataGridColumn customizable implementation

Learn more about DataGridTemplateColumn on MSDN.

275 questions
0
votes
2 answers

DataGrid-- one column uses different data from the others

I have a DataGrid I'm binding to a DataTable, and displaying three BoundColumns as a result. I would like to have a fourth column that connects with different data-- for instance, if column #3 in the DataGrid is a UserID, I would like to use that…
larryq
  • 15,713
  • 38
  • 121
  • 190
0
votes
2 answers

Datagrid DataGridTemplateColumn based on navigation prop

I have a datagrid for my customer data. My customer entity has a collection of notes exposed. I need a method of displaying an image in a column based on the notes status, if any of my notes have a status of "warning", then display a warning image…
CheGuevarasBeret
  • 1,364
  • 2
  • 14
  • 33
0
votes
3 answers

Two way binding exception for dynamic columns on the WPF DataGrid when trying to edit

hi I have the following code to generate dynamic columns.
WPFKK
  • 1,419
  • 3
  • 20
  • 42
0
votes
0 answers

Using a DataTrigger to show a "dirty" value in a DataGridTemplateColumn rather than a DataTemplateSelector

I'm still having some problems getting the hang of WPF. I feel that this is probably a simple question, and I'm wondering why I can 't get this to work like I think it should. I'm trying to use a DataTrigger to show that a value in my DataGrid is…
0
votes
1 answer

I want to show records field according to its status in ExtJs Grid

I am using ExtJs 4, and added a grid to show my records. Grid is also showing images on each row. To show images I am using templatecolumn xtype. There can be one or two images for each record. its {id}_original.{extension} or {id}.{extension}. My…
efirat
  • 3,679
  • 2
  • 39
  • 43
0
votes
1 answer

Using an EventTriggers in a DataGridTemplateColumn

I am using Silverlight 5 and in a view I have a Button that, when clicked, loads a particular state. This is done using an EventTrigger and the GoToStateAction markup like so:
Scott Mitchell
  • 8,659
  • 3
  • 55
  • 71
0
votes
1 answer

Showing Validation.Errors in tooltip not working

I'm trying to show the Validation.error message inside a tooltip in my DataGrid cell but without success. Here is the code of the concerned column. Please tell me if i'm doing something wrong. I did get the idea of the converter from this tutorial …
HichemSeeSharp
  • 3,240
  • 2
  • 22
  • 44
0
votes
1 answer

calling a method in a template column in asp.net gridview

I have a GridView with a template column. In it I have a hyperlink control and I set it's visibility and Navigate URL dinamically using Eval. It all works fine but now I have to add a tooltip to the control, and I need to trim the space and comma at…
Alejandro B.
  • 4,807
  • 2
  • 33
  • 61
0
votes
2 answers

Unbound DataGridView : Need ComboBox In cell of 2nd column only when user clicks cell

I have a unbound DataGridView with two columns. First column is just string values. Second column I want to display a combobox, only when user click the cell(not the whole column as DataGridViewColumn). I use the below code which is incorrect and…
0
votes
1 answer

.net - Change Visibility of Template Column

I am working with a web application in VS2010. I want to change the visibility of a Template Column based on which button is pressed on the webpage. This is what I am currently doing:
Mike
  • 437
  • 3
  • 8
  • 18
0
votes
1 answer

Why does WPF Datagrid SelectionUnit="Cell" cause disabling of DataGridTemplateColumn controls?

This seems a bit bizzare: I have a Datagrid with a button column which deletes the row when the button for that row is clicked. BUT if I set the Datagrid SelectionUnit="Cell" then the button column is disabled and I can no longer click the button.…
Gary Barrett
  • 1,764
  • 5
  • 21
  • 33
0
votes
1 answer

Silverlight datagrid template column

I'm fairly new to Silverligt 5 and xaml for that matter and I have come across a problem. I have a datagrid containing a template column. This template consists in a bunch of TextBlocks, images and other controls. I've customized the way the grid…
Ionut
  • 33
  • 5
0
votes
1 answer

WPF: DataGridTemplateColumn not to affect the last row

I am using .net4.0. I have a DataGrid with 5 cols. I added DataGridTemplateColumn to add "U" and "D" buttons for Update & Delete.
Tvd
  • 4,463
  • 18
  • 79
  • 125
0
votes
1 answer

WPF Datagrid hierarchical data recorded as strings

I have information that was gathered from a service about TFS builds put into ViewModels. Here are the models: public class Collection : ViewModel { private string _name = string.Empty; public string Name { get { return _name;…
Csharpfunbag
  • 395
  • 3
  • 19
0
votes
1 answer

How can I know the checked/unckecked status of the checkboxes on the grid?

I've constructed a DataGrid by adding columns programatically using the following snippet: var check = new FrameworkElementFactory(typeof(CheckBox), "chkBxDetail"); dgDetalle.Columns.Add(new DataGridTemplateColumn() { CellTemplate = …
JPCF
  • 2,232
  • 5
  • 28
  • 50
1 2 3
18
19