Hi,
I would avoid using Expressions in non-readonly scenarios as there are some
problems.
Rather do the expressions yourself (use DataTable events to fill the fields)
and AcceptChanges on row if it was unchanged before.
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
www.rthand.com
Blog:
http://cs.rthand.com/blogs/blog_with_righthand/
SLODUG - Slovene Developer Users Group
www.codezone-si.info
"Giedrius" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hello,
> I have a typed dataset, with tables where some columns are with
> expressions like
> .CaptionColumn.Expression = "ISNULL([Alias], [Name])"
>
> After doing
>
> DataGrid.DataSource = MyTypedDataSet
> DataGrid.DataMember = "Table"
>
> newDataSet = Me.GetData()
> MyTypedDataSet.Clear
> MyTypedDataSet.Merge(newDataSet, "Table")
> MyTypedDataSet.AcceptChanges
>
> Columns with expressions are not calculated, and viewing in Grid show only
> blank space in these columns.
> However exporting to XML, or resetting .Expression = .Expression,
> helps.
>
> So am I missing something after merging data or this is by design?
>