Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate gridview from a DataSet

Status
Not open for further replies.

RaulMA

Programmer
Apr 4, 2006
19
US

Need to populate a GridView (grdCompany) from a Dataset (dsClient). dsClient.Designer.cs has a class named CompanyTableAdapter

Any help will be appreciated


protected void Page_Load(object sender, EventArgs e)
{
CompanyTableAdapter companyAdapter = new CompanyTableAdapter();
//Get the companies Clients in this case
string Region = "Europe";
string Type = "Client";
string Status = "Active";
string SName = "GS_UK";

dsClient.CompanyDataTable Cliente = companyAdapter.GetDataBy(Region, Type, Status, SName);

}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top