Hi
>
> No, but you could simulate expression by implementing DataTable events
> such as ColumnChanged, calculate your value and insert it into the proper
> cell.
> Before inserting the value check for the current RowState and if it is
> Unchanged then call DataRow.AcceptChanges after the value insertion to
> mark row as unchanged (if desired).

so far everything in .NET was a class of something, it strikes me
surprising that the DataColumn expression is a simple string. It has to be
parsed somewhere, are you sure there is this mechanism is not extendable in
a way that would allow writing my own functions?
I'd rather avoid setting up another event if the computation mechanism is
already in place.
And I've seen that it is pretty fast.
btw. I've managed to simulate the First() function with Min(), but without
sorting/filtering it's use is quite limited.
btw again. It seems the the problem is beeing address by the C# 3.0 and LINQ
http://msdn.microsoft.com/vcsharp/fu...s/default.aspx
CUIN Kaczy
>
> --
> Miha Markic [MVP C#]
> RightHand .NET consulting & development www.rthand.com
> Blog: http://cs.rthand.com/blogs/blog_with_righthand/
>
> "Andrzej Kaczmarczyk" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi
>>
>> is it possible to create and add new functions to be parsed by
>> expressions?
>>
>> I have the following situation.
>> master table - containing entities (cars, buildings you name it)
>> detail table - a parameter describing this entity (sometimes integer,
>> sometimes string)
>>
>> I want to create a grid displaying master table sided by computed
>> columns, with values dependant on the detail table. Had it been invoices
>> and invoicelines I'd use
>> "Sum(Child(fk_invoice_invoiceline).invoice_line_value)"
>>
>> but if they are string values the sum is not an option, I need two more
>> functions to complete.
>>
>> First(child_table_rows) given some sort criteria I want to get the first
>> of the detail rows and put the value in computed field
>>
>> Concatenations(child_table_rows) given some definable separator I want a
>> string values to be concatenated and returned.
>>
>> How to do this?
>>
>> thx
>> CUIN Kaczy
>>
>
>