Reformatting data in datagrid column

F

flashgorman

Hi,

I have a datagrid column which is bound to a database boolean field which is
always 0 or 1. What I want to do is show the words "on" or "off" in the
column rather than the actual 0 or 1 value. Is this possible?

TIA
 
S

ShamusFu

Are you using Visual Basic?

If so, you can use the IIF function.

If not, you can write a code-behind subroutine and pass it the boolean
value.
 
F

flashgorman

Are you using Visual Basic?

If so, you can use the IIF function.

If not, you can write a code-behind subroutine and pass it the boolean
value.
Cheers. I'm not using VB so I'll look into the code behind business.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top