Additional functions in DataColumn.Expression

S

Sam

Any one know of a way to make additional functions
available in a DataColumn.Expression? I'm thinking of
things like date manipulation (DateDiff, etc.).

Is it possible to inherit from DataColumn?

Would I have to handle Changed events in the columns on
which the Expression was dependant, and then do the
calculation myself.

Are there any third party DataSet controls that would do
this kind of thing?
 
M

Miha Markic

Hi Sam,

Why don't you compute manually the field?
Just use ColumnChanged event and beware of recursion.
 
G

Guest

I am hoping there is a 'nicer' solution than that.
Does anyone else have any other ideas?
 
K

Kevin Yu [MSFT]

Hi Sam,

As far as I know, in the DataSet in ADO.net, the only way to achieve this
is to handle the ColumnChanged event.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

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

Top