Tagged Questions
7
votes
1answer
3k views
WPF DataGrid : CanContentScroll property causing odd behavior
i have a solution where i generate a DataGrid (or multiple instances) based on user criteria.. each grid keeps receiving data as it comes in via ObservableCollection
the problem i had, was that the ...
9
votes
4answers
17k views
Binding ItemsSource of a ComboBoxColumn in WPF DataGrid
I have two simple Model classes and a ViewModel...
public class GridItem
{
public string Name { get; set; }
public int CompanyID { get; set; }
}
public class CompanyItem
{
public int ID ...
3
votes
2answers
2k views
unselect row in wpf datagrid
I have
<DataGrid Name="grid" MouseDoubleClick="Attributes_MouseDoubleClick" >
I need to unselect a row whenever a click event occurs anywhere else other than the Datagrid row.
i.e. ...
11
votes
2answers
9k views
wpf 4.0 datagrid template column two-way binding problem
I'm using the datagrid from wpf 4.0. This has a TemplateColumn containing a checkbox. The IsChecked property of the checkbox is set via binding.
The problem is that even if I specify the binding ...
6
votes
3answers
13k views
WPF Datagrid binding custom column headers
I am trying to figure out how to bind a WPF DataGrid's column header and main data to a data source using an MVVM pattern. The result I'm looking for would look like this:
I've successfully styled ...
1
vote
3answers
8k views
WPF Hide DataGridColumn via a binding
For some reason I can't hide WPF Toolkit's DataGridColumn. I am trying to do the following:
<dg:DataGridTemplateColumn Header="Item Description" Visibility="{Binding IsReadOnly}">
...
0
votes
2answers
553 views
How to bind the same collection of values into all ComboBoxes in a DataGridComboBox?
I have a Collection of Values in an Array of Strings, or in a List or whatever, and what i want is to set this Collection of values as the Collection of items into all the ComboBoxes in a column as ...
2
votes
4answers
5k views
WPF DataGridTemplateColumn Visibility Binding under MVVM
I have a DataGrid bound to an ICollectionView in my ViewModel. The DataGrid is inside a UserControl which is used in a few different data scenarios, some of which require certain DataGrid columns ...
2
votes
2answers
2k views
WPF Datagrid group expander text - how to bind?
I am using a datagrid with a combox that should change the grouping field. I am using the following xaml to define the general grouping template :
<DataGrid.GroupStyle>
...
1
vote
3answers
9k views
How to set the DataSource of a DataGrid in WPF?
I need to set a table from a database to be the DataSource of a GridGrid in WPF. In Windows Forms the property is called DataSource but in WPF no such property exists, so how can i do it?
1
vote
2answers
974 views
Unable to display data in a WPF datagrid that has a DataView instance as the items source
I am using a DataGrid object from the WPF toolkit. I am binding the DataGrid object to the default view of a DataTable instance as declared in the following code:
WeatherGrid.ItemsSource = ...
1
vote
1answer
966 views
Datagrid (editable issue, access issue) in WPF
I created a Datagrid, as shown in this figure --> http://img682.imageshack.us/img682/5109/datagrid.png
where user is supposed to enter data. In one of columns, I added Combobox.Now, the Datagrid ...