We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfDataGrid custom checkbox cells get cleared during scrolling

Thread ID:





119158 May 15,2015 01:29 PM UTC May 18,2015 09:11 AM UTC Xamarin.Android 4
Tags: General
Michel Uiterwijk
Asked On May 15, 2015 01:29 PM UTC

Dear SyncFusion,

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).

Any ideas why the checkboxes get cleared?

Thanks in advance,

Michel Uiterwijk
(Multi Software)

Attachment: GridCellCheckBox_a611cf8d.zip

Michel Uiterwijk
Replied On May 16, 2015 01:02 PM UTC

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?

Cheers, Michel.

Dinesh Kumar B [Syncfusion]
Replied On May 18, 2015 06:26 AM UTC

Hi Michel,

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.

Dinesh kumar

Attachment: Archive_2_bf06504e.zip

Michel Uiterwijk
Replied On May 18, 2015 08:35 AM UTC

Dear SyncFusion,

Thank you for the quick reply and screencasts!

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!

Regards, Michel.

Dinesh Kumar B [Syncfusion]
Replied On May 18, 2015 09:11 AM UTC

Hi Michel,

Thanks for your update. 
Please let us know if you need any further assistance.

Dinesh kumar


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon