I am having issues with the SfDataGrid under Xamarin.Android.
Looking at your DataGridSample, I decided to use a checkbox instead of a toggle button for selection of a row. Displaying those custom checkbox cells (UserCellType) works fine, but when I have more data (rows and/or columns) than the display fits and have to scroll, all selected checkboxes are cleared.
Attached is the code for the custom cell (based on FormattedCell.cs in the DataGrid sample).
After further investigation there seems to be an issue with scrolling combined with FrozenColumns property. If I have no frozen columns everything is working fine.
Is this a known issue? And is there a workaround?
DKDinesh Kumar B Syncfusion Team May 18, 2015 06:26 AM UTC
We tried replacing the files from Formatting samples with attached "CheckBox" file and we couldn't reproduce the issue in both the cases as mentioned on the previous update. We have attached the screen cast for your knowledge , taken while reproducing the issue. It would great if you can share us the sample or more details regarding the issue.
Difference in my sample is that my checkbox was placed on the left inside the frozen columns. Testing was done on a physical device (Samsung S4 mini running Android 4.4.4).
But now after some more testing it turns out that it has to with the INotifyPropertyChanged (INPC). I didn't have it implemented, but your DataGridSample does have it. Now all seems to work as it should.
Thanks again for the help and pointing me in the right direction!
DKDinesh Kumar B Syncfusion Team May 18, 2015 09:11 AM UTC
Thanks for your update.
Please let us know if you need any further assistance.