datagridtemplatecolumn Questions
2
Solved
I have looked on SO but haven't found an exact answer to what I am looking for. I have a DataGrid view bound to a data source. I want to style columns programmatically after the window with the dat...
Contumacious asked 28/7, 2013 at 18:2
2
Solved
I have a DataGridTemplateColumn. Inside its CellEditingTemplate, I put a DatePicker control. Now if I want to edit the date, I have to click three times to let DatePicker begin editing. Can someone...
Stanleystanly asked 3/3, 2011 at 3:9
2
In WPF datagrids, I have a column defined as DataGridTemplateColumn which I'll need to be using on all kinds of columns. As a very simplified example please consider the below as a dummy sample:
&...
Publea asked 7/8, 2012 at 15:43
1
Solved
To follow my previous post here => Binding SelectedItem of ComboBox in DataGrid with different type
I have now a datagrid containing 2 columns, one with a text, the other with a combobox (in a dat...
Flatfoot asked 24/8, 2017 at 9:12
4
Solved
I'm going bonkers with the following WPF DataGrid+ComboBox scenario.
I have a set of classes which look like;
class Owner
{
int ID { get; }
string Name { get; }
public override ToString()
{ ...
Deloisedelong asked 17/8, 2011 at 5:22
3
I have the following DataGrid:
<DataGrid ItemsSource="{Binding EmployeeList}" CanUserAddRows="True" AutoGenerateColumns="False" Margin="0,0,0,90">
&l...
Dosage asked 11/3, 2014 at 15:34
6
Solved
In WPF's DataGrid control, if you set a column to one of the default column types (like DataGridTextColumn or DataGridCheckBoxColumn), sort on that column, and then change its value, the grid will ...
Fourierism asked 24/10, 2010 at 12:30
5
Solved
when I double-click - or click once when its already focused - below the items in a empty area of the Listbox which is within my DataGridTemplateColumn then I get the above error message.
WHAT do ...
Sugarplum asked 3/3, 2010 at 21:46
2
I've got a DataGrid I've bound to a SqlDataApter. If I set up the XAML for the grid using DataTextColumn as illustrated in the code below it works perfectly
<DataGrid AutoGenerateColumns="F...
Tagalog asked 13/8, 2013 at 18:42
5
Solved
I've narrowed down the problem to the following example that has a DataGrid with three columns.
XAML:
<Window x:Class="DataGridColumnTemplate_NotFiringAddingNewItem.MainWindow"
xmlns="http://...
Beaulahbeaulieu asked 28/6, 2015 at 11:16
1
Solved
I have this XAML that selects a value from a combobox that the ItemSource is a Enum. The tutorial I used is:
http://www.c-sharpcorner.com/uploadfile/dpatra/combobox-in-datagrid-in-wpf/
<DataG...
Pentatomic asked 25/4, 2014 at 10:49
3
Solved
I have a WPF Toolkit DataGrid with one DataGridTemplateColumn. I've specified in a grid attribute that I wish all columns to be sortable, but the DataGridTemplateColumn won't allow it. All other co...
Squire asked 29/4, 2010 at 17:13
4
I am using Microsoft WPF datagrid. I have noticed a strange behavior with WPF datagrid DataGridTemplateColumn. When you use the templateColumn in the grid and the template column contains some cont...
Icosahedron asked 14/4, 2009 at 2:4
1
Seems I've hit a wall trying to use DataTemplates on my DataGrid. What I'm trying to do is to use one template to show two rows of text for each cell. But it doesn't seem to be possible to Bind the...
Centerboard asked 4/7, 2013 at 12:47
1
Solved
I need to access the text in a DataGrid's template column from code behind, but I don't know how. I need to change the text to whatever string I pass to it on the SelectionChanged event. Can someon...
Phantasm asked 8/6, 2013 at 9:15
0
I need to find out how to pass a string to ComboBox that's inside of a TemplateColumn of a DataGrid. The idea behind is that whenever I double-click on a TextBox a Popup appears and I select the ne...
Vying asked 8/6, 2013 at 7:26
1
Solved
BitmapImage im = new BitmapImage();
string path1 = @"C:\abc.png";
im.UriSource=new Uri(path1);
DataGridTemplateColumn one = new DataGridTemplateColumn();
this.dataGrid1.Columns.Add(one);
Now...
Enliven asked 21/1, 2013 at 3:54
3
Solved
The question:
Is there a way to define a DataTemplate in XAML and instantiate it in code (rather than retrieve singleton by FindResource) and modify its VisualTree before sending to where a DataTe...
Beef asked 22/12, 2012 at 7:17
5
I am trying to get the name of the property associated with a particular DataGridColumn, so that I can then do some stuff based on that. This function is called when the user clicks context menu it...
Timothytimour asked 9/4, 2010 at 11:25
4
Solved
I am working on a Silverlight application which makes an extensive use of Prism, the MVVM pattern and MEF. For several reasons, I have chosen to follow a View-first approach.
In one of the Views t...
Aquaplane asked 5/7, 2011 at 13:7
1
Solved
I've constructed a DataGrid by adding columns programatically using the following snippet:
var check = new FrameworkElementFactory(typeof(CheckBox), "chkBxDetail");
dgDetalle.Columns.Add(new DataG...
Mettlesome asked 8/5, 2012 at 16:55
1
I need to create a common DataGridTemplateColumn, so that I can use it across my application with different objects and properties.
here is some sample code, I use in my project
<DataGridTempl...
Castanets asked 28/4, 2012 at 6:12
1
Solved
I am trying to bind the visibility of a column in a datagrid to a boolean DependencyProperty in the ViewModel (Set as data context of the View - UserControl in this case).
For some reason (I don't ...
Ser asked 31/10, 2011 at 14:46
1
Solved
I tried several ways to factor out the format of a cell in a WPF DataGrid (the one provided with .NET 4):
a data converter,
the "StringFormat" binding property within a style,
the "StringFormat" ...
Slipperwort asked 7/6, 2011 at 1:13
1
Solved
Why is the error code :
<dg:DataGrid Name="dataGrid" AutoGenerateColumns="False"
HeadersVisibility="Column" SelectedIndex="-1" Margin="0,315,0,0" Background="#FF484040" BorderBrush="#FF48404...
Tranche asked 30/7, 2011 at 9:35
1 Next >
© 2022 - 2024 — McMap. All rights reserved.