Guys,
I realize I have to populate the dataset.
I am trying to create a Grdview with nested data
ie showing parent/child rows.
I have found out doing some googling that all I do is
set up a relation in the dataset between the 2 tables
and then bind it to a grdiview and it will do the rest.
I have this code now.
Dim dtProj As DataSet1.ProjectsDataTable
Dim dtUser As DataSet1.UsersDataTable
dtProj = New DataSet1TableAdapters.ProjectsTableAdapter().GetPr ojects
dtUser = New DataSet1TableAdapters.UsersTableAdapter().GetUsers
Me.GridView1.DataSource = dtProj
Me.DataBind()
Here I am only binding one table. How do I bind the dataset???????
rotsey
"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:eB**************@TK2MSFTNGP05.phx.gbl...
Hi,
I have created a typed dataset (xsd file) with 2 tables and a relation
between them
in VS2005.
How I do I now bind that dataset to a Gridview??
When i do this the page is blank.
ds = New DataSet1()
gridview1.Datasource = ds
gridview1.DataBind()
Example code would be helpful cause I am lost??
rotsey