cfgrid boolean column as Yes/No

Posted by Gene R on Stack Overflow See other posts from Stack Overflow or by Gene R
Published on 2009-05-19T19:04:34Z Indexed on 2010/04/21 11:23 UTC
Read the original article Hit count: 277

I have a boolean type column in an html cfgrid. The data is stored in the database as 1/0 and is returned from CF as such. I want the user to see Yes/No instead of 1/0. I tried QuerySetCell, and couldn't get it to work.

The form is editable, when you double click the cell, the checkboxes show and it updates as it should. The only issue is the display.

<cfform>
   <cfgrid name="blah" format="html" bind="mycfccall" selectmode="edit">
      <cfgridcolumn name="bitCol" header="Is it" width="75" type="boolean">
   </cfgrid>
</cfform>

Thanks in advance...

© Stack Overflow or respective owner

Related posts about cfgrid

Related posts about cfgridcolumn