Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing datatable by name
Message
 
 
To
29/05/2013 16:19:32
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01575061
Message ID:
01575064
Views:
41
>You mean other than
>
>DataSet.Tables["TableName"] ?
>
>>Hi everybody,
>>
>>I found samples of giving names to the tables in dataset using TableName property. However, I didn't find a way to access the datatable by names. Is there any way to utilize that TableName for access?
>>
>>Thanks in advance.

So, if I do

DataSet.Tables[1].TableName = "MyTable";

I can use

DataSet.Tables["MyTable"]

later in the code?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform