CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    326

    Retrieving Data from database using TableAdapter, storing it in String/Array

    Here is a little code but not completed.
    Hope somebody give me a hint. I want to sort the result.

    Code:
    Object RReturn = new Object();
                DataSet1TableAdapters.droughtDataTableAdapter k1 = new DataSet1TableAdapters.droughtDataTableAdapter();
                String[][] ddata;
                for (int i=0;i<k1.GetData().Rows.Count-1;i++)
                {
                    RReturn = k1.GetData (i)
                }

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Retrieving Data from database using TableAdapter, storing it in String/Array

    I'd start by learning how to use the DataTableAdapter.

    Search Bing or Google for "DataTableAdapter C# example".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured