Expression for a DataTable Column

Jarod

Well-known member
Joined
Feb 5, 2003
Messages
82
Location
Bruxelles
Hello

I have a dataTable with two columns : a boolean and a date.
This dataTable is exposed in a DataGrid and only the boolean column is shown to the user.
What I want to do, when the user checks the checkBox, is to set the current date in the date column. And when he unchecks it, to set a specific date.
Is this can be done with the DataColumn.Expression ?

I do that for the moment by listening the columnChanged event but I would like to be able to centralize that behavior with the DataTable definition and do so with an Expression

Any idea ?
 
No, this cant be done with an Expression. An Expression cant have any IF type of logic in it. I would probably go with the ColumnChanged event like you are.

-Ner
 
Back
Top