Datagrid not displaying in apsx webpage

Discussion in 'ASP .Net Web Controls' started by .Net Sports, Jun 29, 2005.

  1. .Net Sports

    .Net Sports Guest

    I'm trying to display my datagrid (everything is named correctly in the
    datagrid headers), but when running , it doesnt show the datagrid on
    the aspx webpage:

    //////////

    //sql statements are on *this* line

    SqlCommand objCommand = new SqlCommand(strSQL, objConn);

    objConn.Open();
    SqlDataReader objReader = objCommand.ExecuteReader();


    // assign the DataReader object as the source

    // for the "dglvoff" grid


    // set the source of the data for the datagrid control and bind it


    dglvoff.DataSource = objReader;

    da = new SqlDataAdapter(strSQL, objConn);

    ds = new DataSet( );

    da.Fill(ds);

    dglvoff.DataSource = ds;

    dglvoff.DataBind();

    ///////////////
    ???
    ..netsports
     
    .Net Sports, Jun 29, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. whidy
    Replies:
    2
    Views:
    635
    Xavier MT
    Aug 19, 2003
  2. Lucas Tam

    Re: Run DTS from .apsx...

    Lucas Tam, Aug 22, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    364
    Lucas Tam
    Aug 22, 2003
  3. Tom Wisnowski

    IDE is unable to display my apsx page

    Tom Wisnowski, Oct 20, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    320
    Tom Wisnowski
    Oct 20, 2003
  4. Leon
    Replies:
    0
    Views:
    324
  5. Guest
    Replies:
    2
    Views:
    558
    Guest
    Feb 2, 2004
Loading...

Share This Page