Tagged Questions
0
votes
1answer
43 views
WPF Binding: cannot resolve symbol due to unknown datacontext
I try to bind a CheckBox in a DataGrid but in the designer I get while hovering over DoImport
cannot resolve symbol 'DoImport' due to unknown datacontext
My code is
<Window ...
0
votes
1answer
25 views
Wpf DataGrid bind selection from two Collections of same Count
I have List<Foo> F and List<Bar> B, same Count.
What is the cleanest/nicest way to bind columns F.x and B.y to same DataGrid in WPF and mantain OneWay binding from DataGrid to lists F and ...
0
votes
0answers
10 views
DataGridTemplateColumn binding only works on first read
I have a DataGrid with a column that looks like:
<DataGridTemplateColumn Header="Thing">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock ...
0
votes
1answer
32 views
Is this a threading issue? Binding results of backgroundWorker to WPF DataGrid causes hang
I cannot figure out why this is happening. Binding the DataGrid to a DataTable.DefaultView is causing the application to hang. I want to display the contents of a CSV file that has been parsed and ...
0
votes
0answers
11 views
How to make ControlTemplate generic or common with TemplateBinding
I have modified RadComboBox control to display RadGridView inside it. I replaced ScrollViewer and ItemsPresenter with following XAML. It's working fine. However I have multiple ComboBoxes and I don't ...
0
votes
0answers
28 views
DataTemplateColumn with Color Picker FrameworkElementFactory bind converter?
I have a datagrid which i populate dynamically. Weill in one of the columns I want to have a colorpicker from the extended wpf toolkit.
Also I want whenever the user changes color from the color ...
0
votes
2answers
101 views
WPF Hierarchical ViewModel FindAncestor data binding error
I'm creating an MVVM application which has two view models, RegisterUserViewModel and UserViewModel. The "RegisterUserViewModel" has a public property which is a collection of "UserViewModel", like ...
0
votes
1answer
376 views
How to bind DataGridTemplateColumn.Visibility to a property outside of DataGrid.ItemsSource?
I need to bind the Visibility of a DataGridTemplateColumn to a property outside of the DataGrid.ItemsSource,because i need to bind this column in the all the rows to one property inside the ...
0
votes
0answers
61 views
“Recommended” way to bind model 1st, strategy = none, EF 5 data with derived entities to master detail grids in WPF
Or Win forms....I'm not fussy.
I have a configuration database with about 10 tables/types in it, some derived by inheritance.
I want to write the simplest possible UI, that displays the data and ...
-1
votes
1answer
62 views
is it possible to bind a datagrid to a object
I would like to bind a DataGrid to an object, and not to a collection of objects,
My scenario is,
I have a single record with a few columns in the database that the user will keep updating,
and ...
0
votes
0answers
44 views
Personalized DataGridCell With binding of a DataGrid to a DataTable
What is the best manner to bind a DataGrid to a DataTable, knowing that the DataTable contains objects like for ex : a border, and the cells in the DataGrid should be bound to the DataTable Content.
...
0
votes
1answer
229 views
Customised WPF DataGrid with dropdown menus in header
I'm trying to create a DataGrid which has drop-down menus in the headers and I'm not sure how to go about doing so.
The DataGrid itself is populated from a CSV file which can have many different ...
3
votes
1answer
138 views
Binding dynamic text with image in one column and Select entier column in datagrid of wpf
Please let me know how to perform this kind of functionality with WPF DataGrid.
And also let use know how to select entire column of a DataGrid of WPF.
1
vote
0answers
71 views
Binding Row to Validation Rule WPF
I want to bind TextBox's Tag (which is inside a DataGrid), to validation rule's CurrentLegStrategy property (which is a DependencyProperty). Although I've done something similar with Deal dependency ...
0
votes
1answer
155 views
DataGrid inplace editor like MemoEdit based on ComboBox
My goal is creating an inplace editor in WPF datagrid column to edit large texts.
My datasource is a DataTable that can contain data from different tables and fields, that's why i have no any defined ...