Click here to Skip to main content
15,900,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have added a DataSet in my C# solution and I added a table adapter from a query and I don't know at all what kind of source code could be written inside a DataSet class and how could it be used. Does it playes a key role for creating crystal reports? May I have some examples and explanation please? Thank you, so much.

namespace AngelTechShop
{
    partial class ProductTypesPerCategoryDataSet
    {
        partial class ProductsPerProdTypeDataTableDataSet
        {
            
        }
    }
}


What I have tried:

namespace AngelTechShop
{
    partial class ProductTypesPerCategoryDataSet
    {
        partial class ProductsPerProdTypeDataTableDataSet
        {
            
        }
    }
}
Posted
Updated 30-Apr-24 8:03am
v2

1 solution

This isn't a question that makes any real sense as asked: the DataSet class isn't one that you would normally write any source code in - it's a class that is provided by .NET to interface between a data source and the DataTable object it returns. Yes, it can be used to provide the data for Crystal Reports, but that's not really a DataSet function - your code provides the SQL (or other data source) code to fill the DataTable / DataSet object(s) with the data you want CR to work with rather than leavign that to teh DT / DS itself.

I'd start by reading this: Creating Crystal Reports using C# with Datasets[^] and then branch out via google to find more in-depth tutorials on what exactly you are trying to achieve when you have the basics right.
 
Share this answer
 
Comments
Pete O'Hanlon 1-May-24 3:15am    
That got my 5.

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