Click here to Skip to main content
16,011,804 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I am working on a Windows Application developed in VS2008 on SQL2000 datbase.
I am trying to find the source table for on of the datarows in one of the DataSet tables.
The row in question could have been set to any of three tables with a column of the same name.
Is there a way to examine the DataSet properties to see which table it is pulling from to populate each row?
Viewing in designer offers very litle detail.
Posted

I do not think there is a way to know the Table name in Database from which the data was populated. The "Table" property of DataRow provides information about the DataTable that the row belongs to. You have to keep the information in a local variable when the data is populated into the DataTable.
 
Share this answer
 
Comments
gspeedtech 4-Jan-11 20:04pm    
Thanks for the input.
Found it.

In case someone else is as in-experienced as I:

A list of all the Data Sets with corresponding source tables can be found on the Data Sources Tab
 
Share this answer
 
Comments
gspeedtech 4-Jan-11 20:04pm    
No wait, that's just the DataSet DataTable and DataRow info, not the source table info.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900