2
Reply

Finding Database Column Name of a bound textbox

Ask a question
Reza Taher

Reza Taher

16y
5.6k
1

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)