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?

Re: Additional functions in DataColumn.Expression by Miha

Miha
Thu Dec 18 07:17:23 CST 2003

Hi Sam,

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

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

"Sam" <samuel_d_jack@alias.com> wrote in message
news:08aa01c3c560$470ecb30$a601280a@phx.gbl...
> 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?
>
>
>
>



Re: Additional functions in DataColumn.Expression by anonymous

anonymous
Thu Dec 18 09:43:57 CST 2003

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

>-----Original Message-----
>Hi Sam,
>
>Why don't you compute manually the field?
>Just use ColumnChanged event and beware of recursion.
>
>--
>Miha Markic - RightHand .NET consulting & software
development
>miha at rthand com
>
>"Sam" <samuel_d_jack@alias.com> wrote in message
>news:08aa01c3c560$470ecb30$a601280a@phx.gbl...
>> 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?
>>
>>
>>
>>
>
>
>.
>

Re: Additional functions in DataColumn.Expression by v-kevy

v-kevy
Thu Dec 18 21:31:23 CST 2003

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."