What would be the best/right way to have a set of DataGrid columns have proportional width (Width="\*"), but to have their minimum width be at least the width of their content? At the moment, if I use Width="*", then the columns stay exactly…
I've got two WPF Toolkit DataGrids, I'd like so that when the user resizes the first column in the first grid, it resizes the first column in the second grid. I've tried binding the width of the DataGridColumn in the second grid to the appropriate…
I want that the DataGridColumn or AdvancedDataGridColumn would automatically resize it's width so as to fit the content within..
I'm new to flex. I want to implement something like HTML tables.
The Data Rendered is simple Text. Some Rows have little…
I've spent several hours looking at this with no results.
I simply want to have a DataGrid with X number of columns that maintains its relative width to the Grid itself.
So, for example:
Col 1: 10%
Col 2: 10%
Col 3: 10%
I have set up a style that…
I found the Columns collection in my datagrid, and was hoping to iterate through it to find a certain column Name. However, I can't figure out how to address the x:Name attribute of the column. This xaml illustrates my problem with a…
So, for example I have some MVVM WPF application with simple model:
public class MyObject
{
public string F1 { get; set; }
public string F2 { get; set; }
}
and simple view model that creates 3 rows:
public class MyViewModel
{
public…
I am using the LogicalTreeHelper.GetParent() method recursively to find the root elements of various other WPF elements. This works fine with almost everything, but it fails for the DataGridColumn such as DataGridTextColumn.
I found out that…
Is there a way to add tool tip to DataGridColumn header and still retain the sorting functionality. The below code doesnt work(It doesnt display the tooltip)
I am trying to customize a DataGridColumnHeader to show multiple text fields instead of
showing only the header text provided by DataGridColumn.Header property.
If i didn't miss something, i just have to create a DataTemplate and bind to the…
I have an application that fetch data from sensor and then outputs Graphs and Datagrid from that data.
What worked :
I was generating a report with usercontrol that were inserted in a fixedPage that were shown in a FixedDocument with the help of a…
I need to save an string inside a Datagrid Column which differs from the Header.
This is needed because I generate a Datagrid dynamically and want to translate the Column Headers while generating them. Then I bind the whole XAML to a…
I got an DataGrid in MVVM which´s ItemsSource is bound to a Custom Model.
The properties in this model are named like their equivalent in the database.
For example this:
public string StapelStatus_Txt
{
get
{
return…