This is a migrated thread and some comments may be shown as answers.

[Solved] GridView Custom check box column

1 Answer 118 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matt Bohn
Top achievements
Rank 1
Matt Bohn asked on 23 Feb 2010, 03:32 PM
I want to have a checkbox column in my grid in which the checkbox in each row is data bound to a property on a business object.    I would also like to customize the column header to contain a check box and maintain sortability.   The GridViewSelectColumn does not provide the functionality I need because I can't bind the checkboxes to my business object in my view model.

Is there a way to programatically access the header cell and customize the XAML for a single column header?

1 Answer, 1 is accepted

Sort by
0
Matt Bohn
Top achievements
Rank 1
answered on 23 Feb 2010, 03:52 PM
I found a solution to my problem.   Using the RowLoaded event you can access the e.Row.Cells collection and set the cell content to any XAML you want.
Tags
GridView
Asked by
Matt Bohn
Top achievements
Rank 1
Answers by
Matt Bohn
Top achievements
Rank 1
Share this question
or