As far as i know, there is a no way to configure defaults check in datagrid2.
If you want to configure default check. I strongly recommends using non-persistalbe entity.
First create an entity that holds info of check status;
Second, Make a association between Persistable Object ans non persistable object
Third, Make a column that show checkbox. You can leave caption blank. And Set the attribute what you want.
Fourth, add a dataview that retrieve Checkbox non persistable entity.
then walla!
if i want to check even number row then,
then,
if you need a checkbox toggle button then,
Create Entity that stores the Entity that placed in data grid 2
And Place a dataview that return that entity that contains boolean attribute, Add datagrid 2 to dataview and place a checkbox widget to 'Place filter widget'
Don't forget to make a association with Infomation entity and Root Entity!
And give a on click event to checkbox
Walla!
Or, modify the datagrid 2. You can modify the data grid2. Its source code is on Github. Download it and modify the codes as pluggable widgets.
But I don't recommend to modify the codes. I tried that and results are... nahh
Hey
You can write the logic before opening/redirecting to the page in a microflow
You can state your conditions in the retrieve xpath, set the boolean value for those objects as true and then give the open page activity.
Hope this helps!
Regards