gridview and dataset

C

Carlos

Hi all,

just wanted to display the resultset from a dataset in a
gridview is it possible?

Dim sqlCommand As String = "Select LastName, FirstName, emailHome From
employees"

Dim dbCommand As DbCommand = db.GetSqlStringCommand(sqlCommand)

Dim studentDataSet As DataSet = db.ExecuteDataSet(dbCommand)

GridView1.DataSource = studentDataSet

GridView1.DataBind()

I do not see any data after executing. However, it seems that it worked
because no exceptions were thrown.

Can someone help?



Thanks,

Carlos.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top