472,126 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

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 1133
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 Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.