Jarod Posted July 10, 2003 Posted July 10, 2003 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 ? Quote Jarod
*Experts* Nerseus Posted July 10, 2003 *Experts* Posted July 10, 2003 No, this can't be done with an Expression. An Expression can't have any IF type of logic in it. I would probably go with the ColumnChanged event like you are. -Ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.