Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1329
Unbound CheckBox Unique DataKey Error
posted

I have a bound data set from the code behind (AutoGenerateBands is False in the WHDG) and on the WHDG's last column in the .aspx I have added

<ig:UnboundCheckBoxField key="Check" Width="16" VisibleIndex="9" Hidden="false" HeaderChecked="true"/>

"Check" is NOT part of the DataSet. The CheckBox does show but if you try and check any of them in any of the rows, you will get a dynamic error in $IG.HashTree.prototype, "Rows must have unique DataKeys. This key appears more than once: " + dataKey;

This unbound column "Check" is clearly not the unique key for the row but there is a unique key for the row in another hidden column that is indeed unique. Not sure why this error is happening? We are using version 11.1.20111.2036 in VS2010.

 

Parents
  • 33839
    posted

    Hi jdynmond,

    Does this still happen if you get rid of the unbound checkbox?  Do you have a DataKeyFields property set?  If yes and yes, do you think you could attach a small sample reproducing this?  You could also try upgrading to the latest 11.1 SR to see if that resolves the issue.

    regards,
    David Young 

Reply Children
No Data