19
votes
5answers
10k views

WPF DataGrid style-Silverlight DataGrid?

That's not a secret: Silverlight's DataGrid default style is beautiful while WPF's is poor. Instead of reinventing the wheel let me ask the community if anyone has copied the SL styles to use in WPF. ...
14
votes
3answers
11k views

How do I change the background color of a cell using WPF Toolkit Datagrid

I'm using the WPF toolkit datagrid, and I'd like to set the background color of a cell, not the row, based on the content of the cell. For the sake of simplicity, lets say the column is called Foo ...
12
votes
4answers
10k views

Pre-sorting a DataGrid in WPF

I have a DataGrid in WPF app with several columns, including a Name column. If the users switches to a particular view, I want the data to be pre-sorted by Name (and I'd like a sort arrow to appear in ...
10
votes
4answers
12k views

How do I enable text wrapping on all column headers?

I would like to enable text wrapping on all column headers of my DataGrid, without disabling the other default header functionality, such as column resizing, sort direction indicator, etc. Is there ...
10
votes
3answers
4k views

How to show a loading graphic/animation when wpf data binding is taking place

I have a WPF user control that contains a DataGrid. I'm binding an ObservableCollection of view models to it. Each view model has another collection of view models that I'm using to bind another ...
8
votes
2answers
8k views

How to remove DataGrid's blank row when binding to a ObservableCollection<T>?

I'm getting nuts here with this: ObservableCollection<Employee> list = new ObservableCollection<Employee>(); dgEmployees.ItemsSource = list; When you debug the list variable, it's empty ...
8
votes
1answer
4k views

WPF Toolkit Datagrid - how do you turn selection off?

I have a datagrid in WPF that I am binding to an object. I have a DataGridCheckBoxColumn on there which I want the users to be able to go through and tick the ones they want. Problem is they have to ...
8
votes
2answers
1k views

WPF Toolkit Datagrid - Custom Tabbing

I have a WPF Toolkit Datagrid with 3 columns. Only the third column allows data entry - the first two are static (Text descriptions). Is it possible to control tabbing and navigation such that the tab ...
8
votes
4answers
2k views

WPF Toolkit DataGrid column resize event

I am using WPF Toolkit Datagrid in one of the applications I am working on. What I want is to store the column width and displayindex as a user preference. I have achived it for column displayindex ...
7
votes
4answers
17k views

Why can't I bind the WPFToolkit DataGrid ItemSource to DataTable?

In a Telerik control, I was able to bind a DataTable directly to the ItemSource, but when I switched to the Codeplex WPFToolkit Datagrid: <dg:DataGrid Name="theGrid"/> --- theGrid.ItemsSource = ...
7
votes
5answers
8k views

Unable to set DataGridColumn's ToolTip

I tried the following: <tk:DataGridTextColumn Header="Item" Binding="{Binding Item.Title}" ToolTipService.ToolTip="{Binding Item.Description}" /> And I don't see any tool tip. ...
7
votes
1answer
11k views

How do I Get a WPF DataGrid to Save Changes Back to the DataBase?

How do I get a WPF DataGrid to save changes back to the database? I've data-bound my DataGrid control to a DataTable object, and populated that table with a very simple SELECT query that retrieves ...
7
votes
4answers
16k views

WPF Toolkit DataGrid Multi-Select: How to get SelectedItems out?

I'm using the WPF Toolkit's DataGrid. I've enabled the property on the DataGrid to allow for multi-selecting of rows. How do I get the SelectedItems out? I'm using an MVVM framework to bind my ...
7
votes
1answer
969 views

Animate row disappearance in WPFToolKit DataGrid

I have downloaded WPFToolkit, and I am using the DataGrid provided in this package. I am trying to animate a row disappearance when the row is removed, but I don't know how to do it. Does anyone know ...
6
votes
2answers
1k views

Move focus to first column of new row in DataGrid (WPF)

I am binding a DataTable to a DataGrid(WPF toolkit) for add, edit and delete. I am able to use tab keys to navigate through the cells from top to bottom. But as soon as I press tab on last rows' last ...

1 2 3 4 5 10
15 30 50 per page