Here's a Visual Basic .NET tutorial How To Apply Checkbox Check All To WPF DataGrid Using MVVM Pattern In VB.NET on how to add a checkbox to a WPF DataGrid header which selects or deselects all rows in the DataGrid and has corresponding events that update database values using the MVVM pattern. Included in the post is the sample project available for download.