i am using XamDataGrid wait a binding to some custom data object (will be called myObj).
myObj has a bool property called IsSelected , i would like to add a checkbox in that column header so i can select/deselect all easily.
how can i achieve this behavior ?
Hello Shaul,
Thank you for your post. I have been looking into it and I can suggest you see this forum thread:
http://ko.infragistics.com/community/forums/t/61950.aspx
where a similar issue is discussed. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
i already tried this solution , but this solution adds a selection to the Grid ,
i am working in MVVM pattern , my model object has a IsSelected(bool) property , so i have a checkbox column with header "IsSelected" .
i would like to replace the header text with a checkbox that will change the bool value. , so the behavior will be similiar to select all /deselect all.
if you can send a sample it will be great , Thanks.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi ,
this is exactly what i meant , i'll integrate it later this week.
Thanks a lot.
I have created a sample project for you with the functionality you want. Basically I used the approach from the Samples Browser that was suggested in the onther fprum thread, I just put the Checkboxes in the LabelPresenter and the CellValuePresenter instead of the REcordSelectors.
Hope this helps you.