//Lets say we are in a textBox this.BindTo = "Name"; // the field name to bind to this.BindTable = "Table1"; // the table to bind to this.BindProperty = "Text"; // The property of this control to bind this.SetBinding() private void SetBinding() { this.Databinding.Add( this.BindProperty, this.BindTable, this.BindTo ); }the problem i have is to pass the object from "this.BindTable" to the DataBinding.Add method.
>>class TestClass >>{ >> private string _myString = "hello"; >> >> public TestClass() >> { >> this.ChangeString( "_myString", "SomeNewValue" ); >> } >> public void ChangeString( string fldname, string newValue ) >> { >> // refer to the field fldname and change it's value to newValue >> ?????? >> } >>} >>>>