〈〈〈〈〈〈小问题,顶者有分哦~~〉〉〉〉〉〉 能删除一般多可以增加以前我看过table中用过,但是datagrid我没有用过 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在你绑定的DataTable上NewRow就可以了 我是想newrow了,然后绑定到datagrid,再通过datagrid来添加数据,为什么datagrid中没有显示空的新增的那行? private void AddNewRow_Click(object sender, System.Web.UI.ImageClickEventArgs e) { ds=(DataSet)Session["ds"]; ds.Tables["1"].NewRow(); Session["ds"] = ds ; DataGrid1.DataSource=ds; DataGrid1.DataBind(); DataGrid1.EditItemIndex=ds.Tables["1"].Rows.Count-1; }这几句有没有问题? // DataRow row=dt.NewRow();// row["ipointcount"]=dt.Compute("sum(ipointcount)","");// dt.Rows.Add(row);比如这样就给dt增加了一个合计行 WPF Datagrid数据绑定的问题,求助 发一个可以支持MySQL的ORM实例代码 C#.NET通过interop调用word在关闭word窗口时的错误 高手请进!远程数据导入:客户端Execl—>服务器Server 2000 全局变量奇怪的问题 新手入门,问一个关于ListView的简单问题 如何生成一个excel文档呢? 请教一个算法问题 能否具体举例说明Application.EnableVisualStyles()这句话的影响? xml在.net中如何用? 打下举手之劳,谢谢 请教aspx.cs运行与数据库同步的问题?
{
ds=(DataSet)Session["ds"];
ds.Tables["1"].NewRow();
Session["ds"] = ds ;
DataGrid1.DataSource=ds;
DataGrid1.DataBind();
DataGrid1.EditItemIndex=ds.Tables["1"].Rows.Count-1;
}这几句有没有问题?
// row["ipointcount"]=dt.Compute("sum(ipointcount)","");
// dt.Rows.Add(row);比如这样就给dt增加了一个合计行