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
3475
UnboundCheckBoxField displaying black block instead of unchecked appearance
posted

Infragistics4.Web.v11.1, Version=11.1.20111.1006

MS .NET Frameword Version 4.0.30319 SP1Rel

In my parent of the WHDG there is a UnboundCheckBoxField in the first column.  This checkbox is used to delete the associated data in the row when the Save button is selected.  This is done by posting back to the server, using SQL to get the data, put it in a DataSet and bind the DataSet to the WHDG. This all works as expected except the UnboundCheckBoxField.  When the page refreshes, the UnboundCheckBoxField is filled in (a black square) instead of the unchecked state.  I have tried all the following in the code behind, before binding the new DataSet, without luck.  What is going on with this?   

whdgOrganize.Rows.Clear()

whdgOrganize.ClearTemplates()

whdgOrganize.GridView.ClearTemplates()

whdgOrganize.GridView.Rows.Clear()

whdgOrganize.GridView.ClearDataSource()

HTML: <ig:UnboundCheckBoxField Key="RemoveDocument" Header-Text="Rem" Width="30px"> </ig:UnboundCheckBoxField>

Parents
  • 33839
    posted

    Hi IntegraSys76,

    Have you tried simply setting the value of the cell for the unbound checkbox after the row update has occurred?  The unbound values have nothing to do with templates, so those first three lines will not affect the values.  Clearing the Rows shouldn't affect values either.  I'm surprised ClearDataSource didn't clear out the values of all unbound values, though.  

    Do you have a full sample?

    regards,
    David Young 

Reply Children