Strongly types DataSet problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • djpaul
    New Member
    • Oct 2006
    • 137

    Strongly types DataSet problem

    Hello,
    I just won't get it to get the data to display.
    I have a dataset (dataset1) and a datatable Clients and a TableAdapter ClientsTableAda pter.

    I tried some things but nothing would work.

    Code:
    private void Credentials_Load(object sender, EventArgs e)
            {
                DataSet1TableAdapters.CredentialsTableAdapter DSCredentials = new DataSet1TableAdapters.CredentialsTableAdapter();
                DataSet1.ClientsDataTable Clients;
                DataSet1.ClientsRow ClientRow = new DataSet1.ClientsRow();
                Clients = DSCredentials.GetData;
    
                
                //Table = DSCredentials.GetSection();
    
                foreach (ClientRow in Clients)
                {
    
                    MessageBox.Show(ClientRow.name);
                    CmbSection.Items.Add(Table.Rows[0]["section"]);
                  
                }
    
            }
    Thanks in advance!
    Greetz, Paul
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    I don't mean to be rude, but your post has no description of your actual problem - only what you want (note that is "want" not "won't")

    Please look at the suggestions on how to ask a question:

    Then give the volunteers here a more meaningful post so they can better help.

    Comment

    • djpaul
      New Member
      • Oct 2006
      • 137

      #3
      Uuh yeah, sorry. I was tired and i am from holland...
      But i can't edit the post anymore.
      To explane me a little bit more:
      I was/am developing in vb.net, but i want to go further in c#.
      So, i also want to use the database on a better way then i am doing now.
      On my form, i have some textboxes and a datagrid where i want to show my data. For the datagridview is it not a big trouble, but for my textboxes it is...

      Can you tell me more about it, or can you show me an example?
      Most examples on the internet are connecting to a datagridview, but very little fot textboxes, labels and so on..

      Thank you!
      Cheers, Paul

      Comment

      Working...