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
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