Hello
I have a XamGrid, First Column is checkboxcolumn.
When User check the checkboxcolumn, I want to know row data that checkboxcolumn is checked.
and I want to know row count that checkboxcolumn is checked, in XamGrid
and Next I want to Add the Event, that at once check or uncheck All Checkboxcolumn.
Please Let me know that how ...
Hello,
Thank you for your post. I have been researching the functionality that you are trying to achieve and I can suggest using the HeaderTempalte of the CheckBoxColumn in order to achieve both functionalities. You can add a ChechBox to the Header of the column and using its click event to check or uncheck all the cells. For the count of the Checked cells, I can suggest adding a property in your view model that keeps the count of the checked cells and add a TextBlock in the Header’s Template, that is bound to the property I have mentioned. I have created a sample application for you, that demonstrates how you can implement the approach I have described.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hello, Krasimir
Thank you for your help.
I see your sample code, then I have a Question.
You using "ObservableCollection", but I bind Dataview to XamGrid like below.
DataSet _oDataSet = ...("Select...."SQL Result);
oXamGrid.ItemSource = _oDataSet.Tables[0].DefaultView;
In my Case, can I Use "PropertyChangedEvent" for getting checked Row Data and checked Row count.