Solved problem, but still have questions. See end of post, or read on for context.
I'm trying to setup a WPF datagrid which has many templated columns with comboboxes inside of them. In particular I'm having trouble with data-binding.
Data…
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/
I'm trying to build a generic converter to Excel for my DataGrid. I'm using WPF 4.0 and a DataGrid User Control. This converter should take all values from this grid (or selected rows of it) and export to excel (by saving a file). It works, but i'm…
I wish that by default the columns uses the
AutoSizeMode = DisplayedCells;
but I wish also the possibility to resize the columns, but DisplayedCells type doesn't allow to resize..
any ideas?
I have this datagridtemplatecolumn of mine which I would like to bind to a property on my project page which has a type of System.Windows.Visibility. The problem is that whenever im compiling the XAML Below is it throws me an error like this in…
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 seem to understand) it just doesn't work.
After…
I have a custom entity, which contains FirstName, LastName properties (it has other properties also). I bind this entity to a datagrid, which displays FullName (LastName, FirstName) as a DataGridTemplateColumn (using MultiBinding with StringFormat).…
I want to show data in a datagrid where the data is a collection of
public class Thing
{
public string Foo { get; set; }
public string Bar { get; set; }
public List Candidates { get; set; }
}
public class Candidate
{
…
i have a style with datatemplate in xaml page as shown below .
<
Style x:Name="mytemplate" x:Key="mytemplate" xmlns:dataprimitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data"
…
I am using a WPF DataGrid where one of the columns has a requirement to show an "Edit" hyperlink if the row is editable - this is indicated by a boolean flag in the backing model for the row. I was able to achieve this using a DataGridTemplateColumn…
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 datagrid is visible. I also want to change it from time…