Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 ?

Jarod
  • *Experts*
Posted

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

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...