statement in DataGrid's Column

  • Thread starter Thread starter newbie_csharp
  • Start date Start date
N

newbie_csharp

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
 
newbie_csharp,

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

Hope this helps.
 

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

Back
Top