protected void btnquery_click(object sender, eventargs e)
if (!idcode.equals(""))
if (!flowindate.equals(""))
if (!matename.equals(""))
if (!mateidcode.equals(""))
if (!reportdate.equals(""))
if (!verifystate.equals("--請選擇--"))
//this.gvflowing.datasource = bibrecdatabll.getbywhere(querycondition);
//this.gvflowing.databind();
dataset ds = bibrecdatabll.getbywhere(querycondition);
if (ds.tables[0].rows.count == 0)
else
}
gridview 空資料繫結
private void getdatabind this.gridview1.datasource dt this gridview1.databind int colnumcount dt.columns.count gridview1.rows 0 cells.clear gridview1....
Gridview所繫結的資料為空時顯示表頭
4 5封裝 類的封裝 如下所示 using system.data using system.web.ui.webcontrols gridview繫結的資料記錄為空時顯示gridview的表頭,並顯示沒有記錄的提示 public class gridviewcontrol 防止postback後g...
ADO Recordset 判斷記錄是否為空
recordsetptr getuser getuser.createinstance adodb.recordset getuser open user.getbuffer 查詢語句 variant t idispatch m db 資料庫 adopendynamic,adlockoptimist...