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.
 
Back
Top