代码
BUTTON的CLICK事件
string ssql;
ssql = "select jobsource,jobproperty,jobno,loadport,deliport,discport from jobse where jobno like '%SSEN6%'"; SqlConnection conn = new SqlConnection(pubfunc.sConn);
this.adapter = new SqlDataAdapter();
this.ds = new DataSet();
this.adapter.SelectCommand = new SqlCommand(ssql, conn);
AspxGrid.DataSource = this.ds;
AspxGrid.DataBind();GRID的FETCHINGROWS事件
protected void AspxGrid_FetchingRows(object sender, EventArgs e)
{
this.adapter.Fill(this.ds);
}结果出来,GRID最下面能显示 STATUS:OK VISIBLE ON THE PAGE:1-1 TOTAL VISIBLE:15 TOTAL ROWS:15 但是表格中却是一片空白,连HEAD也没显示.还有个问题.如何能让GRID在没有做数据绑定的时候显示HEAD??谢谢...................
BUTTON的CLICK事件
string ssql;
ssql = "select jobsource,jobproperty,jobno,loadport,deliport,discport from jobse where jobno like '%SSEN6%'"; SqlConnection conn = new SqlConnection(pubfunc.sConn);
this.adapter = new SqlDataAdapter();
this.ds = new DataSet();
this.adapter.SelectCommand = new SqlCommand(ssql, conn);
AspxGrid.DataSource = this.ds;
AspxGrid.DataBind();GRID的FETCHINGROWS事件
protected void AspxGrid_FetchingRows(object sender, EventArgs e)
{
this.adapter.Fill(this.ds);
}结果出来,GRID最下面能显示 STATUS:OK VISIBLE ON THE PAGE:1-1 TOTAL VISIBLE:15 TOTAL ROWS:15 但是表格中却是一片空白,连HEAD也没显示.还有个问题.如何能让GRID在没有做数据绑定的时候显示HEAD??谢谢...................
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货