Durga Velusamy

Durga Velusamy

  • NA
  • 318
  • 114.4k

DatasetTableAdapter

Mar 25 2015 3:05 AM

I have one database as company

 

In that I have 4 table: Alpha,Beta,Gamma,like that

In this 1st table with sql connection is working

 

Then I done same procedure for remaining tables but it show Error as

 

 

 Beta tableAdapter does not  exist namespace what is the meaning for this why it works for only 1st table but does not work for remaining tables.



and also i am changing table name corresponding sqlconnection

 

 

{

CompanyDataSet dataSet = new CompanyDataSet();

  CompanyDataSetTableAdapters. AlphaTableAdapter adapter = new CompanyDataSetTableAdapters. AlphaTableAdapter();         showing error in these only line :DatasetTableAdapter does not exist

            adapter.Fill(dataSet. Alpha);    showing error in  these  only line

 

            comboBox1.DataSource = dataSet. Alpha;   showing error in  these  only line

            comboBox1.DisplayMember = "Printname";

 

}

 

{

 

CompanyDataSet dataSet = new CompanyDataSet();

            CompanyDataSetTableAdapters. BetaTableAdapter adapter = new CompanyDataSetTableAdapters. BetaTableAdapter();

            adapter.Fill(dataSet.Beta);

 

            comboBox1.DataSource = dataSet.Beta;

            comboBox1.DisplayMember = "Printname";

 

}

 


Answers (2)