2
Reply

Finding Database Column Name of a bound textbox

Reza Taher

Reza Taher

Aug 12 2008 6:03 PM
5.6k

We can bind a textbox to column using this command:

lblCust_ID.DataBindings.Add(new Binding("Text", bsOrder, "CUST_ID", true));

Is there any way to find the database column name after binding it to a textbox. I need to find programmatically that CUST_ID is the name of column which has been bound to lblCust_ID. 


Answers (2)