Minenhle Gcabashe
how do i add and retrieve in information using a datareader and gridviewcontrol in asp.net
By Minenhle Gcabashe in ASP.NET on Aug 26 2010
  • Manoranjan charty
    Sep, 2010 23

    hi..
    Datareader behavior is read-only, forward only & fetches record one by one. if u want only one select statement then u can use datareader otherwise dataadapter. if u'r connection string is sqlserver then
           SqlDataReader dr=cmd.ExecuteReader()

       GridView providea arrangement of data from dataset in a XML format
         
         GridView1.DataSource=<dataset object>.Tables["alias name of table in dataset"]
        GridView1.DataBind()

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS