i have a function (below) and use of function below
i have two panels that show or hide depending on what data needs to be displayed
on both panels I need to bind address1 to two fields
i then get an error when debugging
System.ArgumentException: This causes two bindings in the collection to bind to the same property.
so im guessing i cant databind the same field to two different fields?
if not then how would you guys suggest i go about making this work?
Thanks for your help
databind(txtAddress1, "Text", dataSetClients.Clients, "Address1");
databind(txtWPAddress1, "Text", dataSetClients.Clients, "Address1");
// function to add a databind
private void databind(Control ctrlfieldName, string strType, object objTable, string strField)
ctrlfieldName.DataBindings.Add(strType, objTable, strField, true, DataSourceUpdateMode.OnPropertyChanged);