Group: Forum Members
Posts: 524,
Visits: 30K
|
As I understand it once a cbo is populated from a BO there is no longer any connection - i.e. there is no record pointer moving in the BO in conjunction with the SelectedValueChanged on the CBO.
The "data" in the cbo itself consists only of the Value and the Display.
So, in the selectedvaluechanged I want to sync the BO so that I can refer to it in code after a cbo selection and get other values in that row in the lookup table.
I can think of lots of ways to do it - seekbyprimarykey(me.cbo.selectedvalue) would get me to the right row. At that point I suppose I could copy the row data to a property defined as a datarow.
But ideally, I'd like to have a property with strongly typed properties ( i.e. a one record BO ) that I could refer to as lookup.field5 for a value that corresponds to another column in the BO.
I'd probably do that with LINQ
But I'd like to make sure I'm not just going brain dead on something already wired into the framework for this fairly common task ???
Suggestions ?
|