locked
FETCHING DATA FROM GRIDVIEW RRS feed

  • Question

  • i GET A BIIIIIIIIIG PROBLEM

    HOW CAN DATA TO BE FETCHED FROM

    DETAILS VIEW

    GRIDVIEW

    FORMVIEW

    PLEASE SEND ME THE CODE

    Tuesday, April 24, 2007 5:39 AM

All replies

  • in datagridview, you can access it by using "Rows" property.
    Tuesday, April 24, 2007 2:27 PM
  • hi suhita,
    i had the same problem aswel.I used this code to retrieve data from db.

    Dim ConnectionString As String = ConfigurationManager.ConnectionStrings("ConnectionString").ToString()
    Dim dr As SqlDataReader
    Dim con As New SqlConnection(ConnectionString)
    con.Open()
    Dim s As New SqlCommand("SELECT statmt", con)
    dr = s.ExecuteReader()
    dr.Read()
    b = dr.GetString(0)
    Response.Write(b)





    This code wil read data from db ... I think the code wil be useful , if the code was useful mark this post as answer thank u....
    Wednesday, April 25, 2007 5:36 PM