Hidden paths of MVVM - Lookup values
To recap, I am getting my feet wet in MVVM using XAML and I got stuck with a seemingly simple task. I have a field with domain values and I needed to display the description stored in another table. Ordinarily, I would have defined a calculated field in the target dataset and make it a lookup field against the dataset containing the description using the domain value as the matching key. I am using a strongly typed dataset for my data layer and conversant with using EXPRESSION property to derive values. My intial thought was to use the "RowChanging" event handler to populate the description for the domain value but then I thought that was not an efficient way to go and I suspected there was a way to actually implement some form of "lookup" even if it was not implemented in the traditional way. Well, I did a couple of googling and came across the concept of "RELATIONS" in dataset. Basically, Dot Net Framework allows relationship to be defined at desig...