G
Guest
Hi,
I am trying to determine the name of the datatable that a control is bound
to using code. For example: I have a textbox which is bound to a
bindingsource. The bindingsource is either bound to a dataset's datatable or
another bindingsource and a relation (typical master detail setup). How can
I determine the name of the underlying datatable that the control is bound to?
Scenario 1: textbox, bound to bindingsource, bindingsource datasource is a
dataset, datamember is a datatable.
Scenario 2: textbox is bound to a bindingsource, bindingsource is bound to
another bindingsource - datasource is binding source, datamember is a
relation such as master_detail.
Thank you very much for your help.
I am trying to determine the name of the datatable that a control is bound
to using code. For example: I have a textbox which is bound to a
bindingsource. The bindingsource is either bound to a dataset's datatable or
another bindingsource and a relation (typical master detail setup). How can
I determine the name of the underlying datatable that the control is bound to?
Scenario 1: textbox, bound to bindingsource, bindingsource datasource is a
dataset, datamember is a datatable.
Scenario 2: textbox is bound to a bindingsource, bindingsource is bound to
another bindingsource - datasource is binding source, datamember is a
relation such as master_detail.
Thank you very much for your help.