自定义的一个数据邦字函数
private void BindData()
{
  MyDataGrid.DataKeyField = "id";
    MyDataGrid.DataSource = (DataTable)CreateTables.NewTables("Select * From Plan Where Fl_id='" + Session["Fl_id"] + "'");
    MyDataGrid.DataBind();
}
private void Add()
{
....
Cmd.Parameters.Add("@Other", OleDbType.VarChar, 100);
Cmd.Parameters["@Other"].Value = Other.Text;
Cmd.ExecuteNonQuery();
BindData();
}
为什么我执行上面的函数后,不自动邦字更新呢,非要我刷新一下才能看到新入库的数据?
PS:Add入库程序没有问题,以上代码没有贴完整!