Tagged Questions
4
votes
1answer
5k views
XamlParseException occurred: Failed to create a 'System.Windows.Style' from the text 'PhoneMasterGridColumnHeader'
I have four datagrids on a Silverlight 4 page. I'm trying to set different column header styles for each grid. I found this XAML which works when I embed it in each DataGrid inside ...
4
votes
1answer
9k views
Silverlight DataGrid row color binding
I'd like to find a way to bind the background color of rows of a DataGrid to a property of my bound objects.
Here is my XAML :
<sdk:DataGrid ItemsSource="{Binding MyItems}" />
I'm using the ...
4
votes
2answers
4k views
Silverlight - DataGrid in Scrollviewer, Column.Width=“*” makes datagrid take several screen-widths
When I have the following setup, the last column having a width of * causes the datagrid to create huge horizontal scrollbars (extends grid to several widths of the screen). I'm not really sure why ...
4
votes
2answers
419 views
How do you restrict selection of cells to exclude a column in a DataGrid?
I have a datagrid based selection control that duplicates the Easing Function selector in Expression Blend. This is for the Easing Function project so you will also be helping yourself :)
This ...
4
votes
1answer
1k views
Merge Header Row in Silverlight DataGrid
I'm trying to obtain a table with the following format:
Header 1 | Header 2
Col1 | Col2 | Col3 Col4
while using Silverlight.
I have searched, without success.
Any ideas?
[EDIT]
I have found ...
3
votes
2answers
8k views
Pass data to Child Window in Silverlight 4 using MVVM
I have a datagrid with master detail implementation as follows:
<data:DataGrid x:Name="dgData" Width="600" ItemsSource="{Binding Path=ItemCollection}"
...
3
votes
1answer
3k views
Silverlight 4 datagrid printing
I have a Silverlight 4 app with RIA services. It's based on Tim Heuer's video and I have pretty much the same setup.
I have a DomainDataSource, a set of DomainDataSource.FilterDescriptors, a ...
3
votes
1answer
975 views
Silverlight DataGrid MouseLeftButtonDown event not raised when clicking on rows
Note: I have found a solution to my problem so I am posting this for reference purposes, although I would be happy to be educated with a better solution.
I'm trying to provide double click ...
3
votes
1answer
264 views
How to control number of allowed checkbox states?
I am using the silverlight 4 toolkit gridcontrol and I'm using auto generated columns. My boolean field is showing up as a tri-state checkbox (true, false, null).
public bool? Enabled { get; set; }
...
3
votes
2answers
218 views
Silverlight UI culture
I have a date column in a datagrid in my silverlight App. I need the time to be displayed in 24 hr format. To achieve this I have modified the UI culture in Application_Startup event like this:
...
3
votes
2answers
287 views
Is there some event to determine when DataGrid columns change (i.e. added, removed) in Silverlight?
Is there some event to determine when DataGrid columns change (i.e. added, removed) in Silverlight?
2
votes
2answers
4k views
Get Row from Index in Silverlight DataGrid
I am trying to implement reordering rows in a Silverlight DataGrid. For this I am extending the default DataGridDragDropTarget, and I need to override and implement the following method:
protected ...
2
votes
1answer
552 views
How to define Button click handler in programmatic XAML definition
I am dynamically creating the columns for a data grid in a User control in Silverlight 4 which is working correctly.
The first column of the data grid is a button so I am using the following code to ...
2
votes
1answer
802 views
How to change DataGrid Grouping Display to some other aggregate
I have a DataGrid bound to a PagedCollectionview property of my View-Model. I've added a PropertyGroupDescription to the PagedCollectionView.GroupDescriptions.
Currently the grouping heading ...
2
votes
1answer
467 views
Freeze Columns from right to left
I have a data grid in which I need to freeze the rightmost column.
It is no problem to freeze the columns from left to right with the FrozenColumnCount property.
Does anyone of you know how to do ...