[This doesn't relate specifically to LLBLGen, but more to the .Net framework in general.]
For this project, we're currently using:
.Net 1.1 (C#)
LLBLGen 1.2005.1
I've seen general databinding examples that do something like this:
ucbPressProgram.DataBindings.Add(new Binding("Value", this.objPressWhiteBiz, "PressProgramId"));
where objPressWhiteBiz is a biz object we wrote and ucbPressProgram is an Infragistics UltraComboBox.
Is there a way to avoid "hard coding" the property of the biz object? I.e. doing something like this:
ucbPressProgram.DataBindings.Add(new Binding("Value", this.objPressWhiteBiz, objPressWhiteBiz.PressProgramId));
I've searched the web and looked at various documents on databinding, and all seem to point to using strings for the object's property.
If .Net 1.x doesn't offer this, does .Net 2.0? From what I could tell, the new "BindingSource" control and VS.Net wizards just generate the mappings in the .designer.cs file using the same method as my first code example.
Thanks for any input or suggestions.