Welcome to MSDN Blogs Sign in | Join | Help

Vincent Sibal's Blog

WPF Programming Topics

Browse by Tags

All Tags » DataGrid Samples   (RSS)
Launching a custom Dialog to edit items in a DataGrid (with MVVM)
Launching a custom dialog for editing on the DataGrid is another somewhat common request that I see from the discussion list . I thought I would provide a sample but at the same time implement it with the MVVM pattern. The requirement that I will use Read More...
Exploring MVVM: Grouping with the DataGrid
Model-View-ViewModel (MVVM) is one of those really interesting design patterns that are used in WPF. It provides a separation between the UI and business logic and uses data binding techniques to connect them together. Karl Shifflett has some great material Read More...
WPF DataGrid Sample: Locking input to the row being edited
Scenario By default the WPF DataGrid will commit a row when focus is lost on the row, the ‘Enter’ key is pressed, tabbing to the next row, or programmatically calling commit on the row. Let’s say I want to control how the user commits a row edit by locking Read More...
WPF DataGrid – Dynamically updating DataGridComboBoxColumn
The Scenario I want to do a master detail like scenario where the selection in one ComboBox cell will update the list of items in the next ComboBox cell and so on. Setting up the DataSource and ViewModel I will use the Northwind database for this example Read More...
WPF TestApi and DataGrid Sample
Our WPF Test team has just released a library of tools that can be leveraged to test WPF applications. What's really cool is that these are utilities that we use internally and now we can push them out to external customers for feedback and usage. The Read More...
WPF DataGrid – New Item Template Sample
This sample shows how to create a template for the NewItemPlaceholder to indicate that you can add a new item. This is what it will look like: First I will need to create a new template specifically for the NewItemPlaceholder row. I’ve followed the general Read More...
WPF VSM and DataGrid Sample
Now that the Visual State Manager (VSM) is part of the WPFToolKit, I thought I’d show a basic example of how to utilize VSM with the DataGrid. Some prereq’s and resources: · You can download the toolkit here · Info on getting VSM for WPF to work in Blend Read More...
WPF DataGrid: Frozen Row Sample
It looks that this is a frequently requested feature and unfortunately didn't make the v1. It is still possible to extend the DataGrid to do so. A community developer has already posted a sample on creating a footer row for the DataGrid here, http://thibaud60.blogspot.com/2008/10/wpftoolkit-datagrid-with-footer-and.html Read More...
WPF DataGrid - DataGridComboBoxColumn v1 Intro
Intro If you haven't already, you can download the DataGrid v1 bits and source here . DataGridComboBoxColumn has had a make-over since the CTP release. In particular, the whole data binding story has been updated so that you can accomplish basic ComboBox Read More...
WPF DataGrid and the WPFToolKit have released!
Finally, the v1 WPF DataGrid is out! This is an out-of-band release that will be hosted on the WPF CodePlex site and integrated into the WPF Framework in vNext. You can download the bits as well as the source code here . You also may be pleased to hear Read More...
Pasting content to new rows on the WPF DataGrid
On a previous post I talked about how to implement Clipboard.Paste for the DataGrid. The functionality was such that you could only paste to existing rows and cells. I got a customer request on how to paste to new rows so I thought I’d capture it here. Read More...
WPF DataGrid - Clipboard Paste Sample
In the v1 release (and CTP) of the WPF DataGrid there will be support for Clipboard.Copy but no support out of the box for Clipboard.Paste. However, there is extensibility support for Clipboard.Paste which I will show how to implement in this post. In Read More...
WPF DataGrid – Styling rows and columns based on Header conditions and other properties
There have been several questions on the WPF CodePlex discussion list relating to styling rows and columns based some requirements on other elements or some other conditions. I decided to put a couple examples here on different ways you can accomplish Read More...
WPF DataGrid: Tri-state Sorting sample
Here is a short sample on how to create a tri-state sorting experience with the WPF DataGrid . In the current design, when clicking on a column header it will toggle sorting of the column starting from ascending to descending. Unfortunately you cannot Read More...
WPF DataGrid: Working with DataGridComboBoxColumns CTP (Part 2)
UPDATE: DataGridComboBoxColumn has been updated from CTP to V1. See the post here for the updates to the DataGridComboBoxColumn as well as an updated sample. Previously I started a post on DataGridComboBoxColumns where I introduced the APIs specific to Read More...
More Posts Next page »
Page view tracker