var db = new XXXXDataContext(); if(....) dg.ItemsSource = db.tableA; else dg.ItemsSource = db.tableB;
<datagridtextcolumn width="Auto" header="TableAID" binding="{Binding TableACode, Mode=TwoWay, Path=IsSelected, UpdateSourceTrigger=PropertyChanged}" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)