Questions tagged [datagridtemplatecolumn]

Represents a DataGridColumn customizable implementation

Learn more about DataGridTemplateColumn on MSDN.

275 questions
0
votes
1 answer

Silverlight 4 datagrid and Selecting All Checkboxes when select the Group Header CheckBox

I have a datagrid with Grouping ON and whose first col is a Checkbox. I'm looking to have the CheckBox on the Group Level so that the User click one checkbox and it automatically select all the checkboxes under that groud and vicevera. I also have a…
Jhelumi786
  • 31
  • 4
0
votes
1 answer

get Values in a template column in wpf data grid

In my project I have a data grid with three combo box template columns and are data bound to three collections and these columns are editable. The grid is bound to an observable collection, which is used to add new row to the grid like…
Sony
  • 7,136
  • 5
  • 45
  • 68
0
votes
1 answer

Combo box inside Data grid template column is showing system.data.datarowview

In my project i have a data grid with three combo box template columns. and the combo box is data bind using xaml. But when I run the project combo box is showing system.data.dataRowView . here is my code for the data grid…
Sony
  • 7,136
  • 5
  • 45
  • 68
0
votes
1 answer

Dynamically generated columns in radgrid disappear after postback

Am using radgrid and creating it in aspx but on certain action i add more GridTemplateColumns to the grid. private void CreateDateColumns(List occurenceList) { if (occurenceList != null && occurenceList.Count > 0) { int…
Nader El Masry
  • 433
  • 1
  • 6
  • 11
0
votes
1 answer

How do I retrieve and save the data out of a dynamically created control in a dynamically created RadGrid

Ok here is the scenario. I have created a completely data driven Radgrid with only 2 static buttons on the page, Save and Cancel. The Radgrid is created dynamically, as well as all the data in the grid (from MS SQL). Here is the tricky part, I…
Dave_P
  • 174
  • 2
  • 16
0
votes
0 answers

How to set darkcolor didnot set to wpfdatagrid progressbar templatecolumn?

Am using the below code for showing progressbar and text,but that time am set progressbar foreground color as dark green,but while runtime it shows very very light green color,why? How to set dark in runtime?or is it…
0
votes
1 answer

Create DataGridRows for observable collection of custom class with Image and Text

I've searched high and low for a solution to my problem but I haven't been able to find anything that works. I'm at a complete loss at this point. I have a custom class that has a BitmapImage property and a String property. Lets call this class…
0
votes
1 answer

Exclude a DataGrid Column from displaying RowDetails

I am teaching myself WPF, LINQ, and MVVM by writing a little tool to parse the CME XML configuration files like the current Production configuration. I have added a DataGridTemplateColumn with a checkbox to the DataGrid that displays the channels so…
ColleenV
  • 193
  • 3
  • 14
0
votes
1 answer

Binding a list of String to a DataGridTemplateColumn's ComboBox

The question might seem quite easy but I can't get it and I tried everything I've found. It works for a list of class, since I can bind on one of my class' properties, but not for a simple ObservableCollection of String. Here's my code in Xaml…
0
votes
1 answer

Get textbox binding in wpf datagridtemplatecolumn

I have a wpf datagrid containing multiple datagridtemplatecolumns, which all are build up from a datatemplate which contains a textbox. Now I want to get the binding of the textbox (I have a reference to the template column which textbox's binding …
klawusel
  • 681
  • 1
  • 6
  • 19
0
votes
1 answer

DataGridTemplateColumn for individual control-column vs DataGridTextColumn

what is the difference, both works: DataGridTemplateColumn versus DataGridTextColumn both works means I can edit+display rich text in the cell.
0
votes
1 answer

Set binding for DataTemplate components in code

sorry if I'm not clear, it's not really clear in my head too (especially after trying to find my way in other posts :p) What I'm willing to do is creating DataGrids in code, with zero to numerous columns containing a button, which will call one same…
Chouppy
  • 75
  • 6
0
votes
1 answer

DataGridTemplateColumn not centering correctly

I am trying to create a CheckBox which only requires one click to select it (as opposed to the usual two - one to activate it, another to select) and that is working, but now the column border is incorrect: Here is the XAML I am…
Conrad
  • 2,197
  • 28
  • 53
0
votes
1 answer

WPF DataGrid: How do I get all buttons in a DataGridTemplateColumn to have the same image?

Hello, I am having some issues styling the DataGrid in WPF. I have a column which consists of an image button (button where content is an image) that represents opening the file in excel. The image is only appearing for the first created row…
kformeck
  • 1,703
  • 5
  • 22
  • 43
0
votes
0 answers

Accessing data from Datagrid with template columns

I have created a datagrid with DataGridTemplateColumns. I want to access the values of datagrid cells. Here is my Xaml code:
Afaq
  • 1,146
  • 1
  • 13
  • 25