各位大侠辛苦了!俺用UltraWebGrid绑定一个DataSet用于更新一个数据表,可俺在UltraWebGrid的UpdateCellBatch事件中去更新数据源DataSet,这时候这个DataSet就变成空的了?是怎么回事啊?请大侠教俺良方,不胜感激!以下是代码,不可以执行,表示那么个意思.
public class TableEdit : System.Web.UI.Page
{
protected Infragistics.WebUI.UltraWebGrid.UltraWebGrid fieldsGrid; private DataSet dsTableInfo;
private void Page_Load(object sender, System.EventArgs e)
{
tableId=Request.QueryString["tableId"];
action=Request.QueryString["action"]; if(!IsPostBack) {
//读数据
dsTableInfo=getDataSet();
fieldsGrid.DataSource=dsTableInfo;
fieldsGrid.DataBind();
}
}
//将数据表格中更新的单元格更新到数据集dsTable中
private void fieldsGrid_UpdateCellBatch(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
{
//在这里读源DataSet就变成空的了 } }