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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display DataReader's Data

Status
Not open for further replies.

kebele

MIS
Joined
Jul 31, 2006
Messages
107
Location
US
I know it is possible to display dataset's data in a label like below but i am just wondering if i could do the same thing for datareader? please help. thanks

Label1.Text = myDataSet.Tables("OneItem").Rows(0).Item("PRROUTE").ToString()

here is my code for datareader

Dim cmd As OracleCommand = New OracleCommand(StrSql, oOracleConn)
dr1 = cmd.ExecuteReader()
gvOneItem.DataSource = dr1
 
You'll have to loop through the reader.

faq855-5662


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top