Here is code that works ---
DataTable dt1 = new DataTable("Table1") ;
DataTable dt2 = new DataTable("Table2") ;
dt1.Columns.Add(new DataColumn("A"));
dt1.Columns.Add(new DataColumn("B"));
dt1.Columns[0].DataType = typeof(System.Int32);
dt1.Columns[1].DataType = typeof(System.Int32);
dt1.Columns[1].Expression = "A*2";
dt2.Columns.Add(new DataColumn("A"));
dt2.Columns.Add(new DataColumn("B"));
dt2.Columns[0].DataType = typeof(System.Int32);
dt2.Columns[1].DataType = typeof(System.Int32);
DataRow dr;
dr = dt1.NewRow();
dr[0] = "1";
dt1.Rows.Add(dr);
dr = dt2.NewRow();
dr[0] = "2";
dt2.Rows.Add(dr);
dt1.Merge(dt2);
dt1.WriteXml("C:\\1.xml");
Notice that I am using datatable instead of dataset because datatable in
..NET 2.0 supports merge.
The concepts are the same though, so the above datatables, added to datasets
should work in .NET 1.1.
In other words, there's something funky about your code.
- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
"Giedrius" <(E-Mail Removed)> wrote in message
news

2B1FB16-53FF-4635-B0DF-(E-Mail Removed)...
> Hi,
> I have ResultDataSet returned by some "DataAccess" component, and I have
> typed dataset, with all other functionality.
>
> In typed dataset where are tables with columns which uses expression
> ISNULL([Column_A], [Column_B]).
> After doing:
> myWorkDataSet.Merge(ResultDataSet)
> myDataGrid.SetDataBindings(myWorkDataSet, memberTable)
> these expressions are not working initially. But after editing any row in
> datagrid (and other 3rd party grid), expressions are working again.
>
> Current solution after myWorkDataSet.Merge(ResultDataSet), to do
> Column.Expression = Column.Expression
> Maybe I am missing something?