//gridview数据绑定
if (daTable.Rows.Count == 0)
{
daTable.Rows.Add(daTable.NewRow());
GridView1.DataSource = daTable;
GridView1.DataBind();
int nColumnCount = GridView1.Rows[0].Cells.Count;
GridView1.Rows[0].Cells.Clear();
GridView1.Rows[0].Cells.Add(new TableCell());
GridView1.Rows[0].Cells[0].ColumnSpan = nColumnCount;
GridView1.Rows[0].Cells[0].Text = "无记录";
GridView1.RowStyle.Height = 30;
GridView1.RowStyle.HorizontalAlign = System.Web.UI.WebControls.HorizontalAlign.Center;
}
else
{
GridView1.DataSource = daTable;
GridView1.DataBind();
}