469,573 Members | 1,661 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,573 developers. It's quick & easy.

statement in DataGrid's Column

Hi,
how can I write a statement for a DataGrid's Column? for example one of
my column should be a checkbox but the table's field is not boolean:

DataGridBoolColumn boolCol = new DataGridBoolColumn();
boolCol.MappingName = "active";

"active" can be "YES" or "NO". how I can set this statement for this
column:

(active == "YES")

thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
1 1095
newbie_csharp,

You have to set the TrueValue property to "YES" and the FalseValue
property to "NO".

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"newbie_csharp" <an*******@devdex.com> wrote in message
news:e%******************@TK2MSFTNGP10.phx.gbl...
Hi,
how can I write a statement for a DataGrid's Column? for example one of
my column should be a checkbox but the table's field is not boolean:

DataGridBoolColumn boolCol = new DataGridBoolColumn();
boolCol.MappingName = "active";

"active" can be "YES" or "NO". how I can set this statement for this
column:

(active == "YES")

thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.