How can I find a datagrid's source Table Name?

J

joel

I populate a datagrid from one of 2 datasets, each has a
different Table Name. During the OnItemDataBound event,
I'd like to determine which of the 2 tables provided the
data. The following snippet provides me with that value if
pasted into the Immediate Window during debug, but if
placed in code causes the
error : 'System.Web.UI.WebControls.DataGrid.pagedDataSource
' is inaccessible due to its protection level



((System.Data.DataView)(((System.Collections.IEnumerable)
(((System.Web.UI.WebControls.DataGrid)
(((BIP.Framework.Web.UI.WebControls.MultiGrid)
(sender)))).pagedDataSource.DataSource)))).table.tableName;


any help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top