Hi,
I have a requirement to select all rows of data in a xamgrid, so how can i make use of the left corner header cell to select all rows.
Also an other way would be if I could have a checkbox there for selection of all rows, it would suffice my requirement.
Also i am using MVVM pattern for the project.
I have shown the cell in red color circle in the attached image, please help.
Thanks
Rakesh
Hello Rakesh,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the ExpansionIndicatorHeaderCellControl and put a CheckBox inside its Template. I also set a Command to the CheckBox for selecting all the Rows in the XamGrid. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
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.
I can say that you can use the approach from the Samples Browser in the application I have sent you. Since in the Samples Browser there is a Style for the selection, in the sample I sent you everything should work the way you want.
Hello Stefan,
I have a query here when the XamGrid is set for selectall, actually i have seen the XamGrid example in Infragistics-Samples Browser that all the items are seen as selected.
And not just the active item.I mean the blue color border on all the cells. I agree that in the sample you uploaded has a effect of select all, but all the items should have the blue color border for me.
Can you please tell how to achieve that.