[Solved] How to prevent checkbox checked when select row in datagrid?

I looked at the cellclick event, checkboxclick but it didn't work for me, when I select a row in the datagrid (not under the Column checkbox, the checkbox is automatically checked, how to avoid this?
Thanks!

6 Replies

TG The GridLock April 27, 2020 06:26 PM UTC

I have found the answer here: 
It works when it's all gridcolumn, but if binding datatable and then adding column checkbox it doesn't work for me, may be need to convert datatable to gridcolumn?
Temporarily I built gridcolumn from the beginning to avoid this problem.
Edit: I didn't know it was possible to create checkboxes with datatable without gridcolumn. (it worked)


SS Susmitha Sundar Syncfusion Team April 28, 2020 08:07 AM UTC

Hi GridLock, 

Thank you for using Syncfusion controls. 

We suspect that you are using GridCheckBoxSelectorColumn. Because , GridCheckBoxSelectorColumn is a unbound column which is used to select the rows by click the check box and vice versa the checkbox will be checked when you select the rows. If you want to restrict this behavior, please use the GridCheckBoxColumn instead of GridCheckBoxSelectorColumn. 



Please let us know if you need further assistance on this. 

Regards, 
Susmitha S 
 



TG The GridLock April 28, 2020 11:58 AM UTC

Hi Susmitha,
That's it !, changed code to gridcheckboxcolumn and now it works fine


SS Susmitha Sundar Syncfusion Team April 29, 2020 05:45 AM UTC

Hi GridLock, 
 
Thanks for the update. 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Susmitha S 



TG The GridLock April 29, 2020 11:53 AM UTC

Hi Susmitha,
Unfortunately, This is still a challenge for me. I had new questions here:
Edit: my new question done!


SS Susmitha Sundar Syncfusion Team April 30, 2020 04:43 AM UTC

Hi GridLock, 
 
Thanks for the update. 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Susmitha S 


Loader.
Up arrow icon