Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to assign dataset value to string variable
Posted
Comments
walterhevedeich 5-Aug-11 2:48am    
You can't. Dataset is like a whole database object.

1 solution

You can't assign a whole dataset to a string: a dataset is (at it's most basic) a group of datatables, which (at their most basic) is a group of data rows, which again ar a group of data cells.

The cells individually can be assigned to a string, but assigning a dataset would not produce anything particularly useful for the user.

Have you considered useing a DataGrid? There is an article which covers that here: Using ADO.NET for beginners[^]
 
Share this answer
 

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