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