Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: display contents of a dataset in a datagrid


Message #1 by "dirk neethling" <dirk.neethling@g...> on Mon, 21 Jan 2002 01:27:29
Hi,
I have a service which sucessfully return a dataset. I want to display the 
content of the dataset, but how?
I use the following code to no avail:
ds = svgService.getBranchRisksAdapter(
  sph.getWebConfigConnectionString(),   varsUser.language,
  varsUser.branch, varsUser.quarter, varsUser.template);

DataGrid MyDataGrid = new DataGrid(); 
MyDataGrid.DataSource=ds.Tables[0];
MyDataGrid.DataBind();

can anyone please help with code that works. please keep it simple.
dirk

  Return to Index