expression column doesnt update after deleting a row

R

Ramez

Hello
I have a column its expression is set to "Sum(child.Price)". If I've added a
row to the child table the expression column will be updated correctly.
However the problem arises when I delete a row (from the child table), the
expression column remains unchanged.

Thanks in advance for helping.
 
K

Kevin Yu [MSFT]

Hi Ramez,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when a row is removed from child table,
the value of the computed column is not updating. If there is any
misunderstanding, please feel free to let me know.

Based on my research, this is a known issue in current version of .NET
Framework. The column with expressions will not recompute value when child
or parent rows are deleted. Here I have a workaround. You can handle the
DataTable.RowDeleted event to re-set the expression for the subtotal column
after setting it to an empty string.

HTH.

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