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
315
Update databound boolean fields
posted

Hi

 i have some boolean fields that are being displayed as checkboxes in my grid - how can i get these to update the database when the user changes the values?

 

IsEditable is set to false

 

many thanks

 

jon 

Parents
No Data
Reply
  • 45049
    posted

    Use one of the following events:  UpdateCell, UpdateCellBatch, UpdateRow, or UpdateRowBatch

    When you change the checked state of your cell, you're changing the underlying value of the cell to either true (checked) or false (unchecked).

    This assumes, of course, that you're using the grid's built-in functionality to display a boolean data type as a checkbox.  If you're instead using a tempalted column and putting a checkbox in the cell template, then it depends greatly on how you've set up your cell template - and isn't an approach I suggest unless you need to put other controls in the same cell.

Children