Datagrid not displaying in apsx webpage

N

.Net Sports

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top