在行插入,更新,删除后,AspxGridview绑定中出现问题 [英] Problem in AspxGridview Binding after Row insert,Update,Delete

查看:69
本文介绍了在行插入,更新,删除后,AspxGridview绑定中出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已将栅格"视图与级联组合"框一起使用.插入,更新,删除Gridview后未绑定.即使刷新页面也不会显示更改,直到重新运行应用程序.


为了更新,我使用了以下代码:

Hi ,

I have used Grid view with Cascade Combo box. After Insert,update,delete Gridview is not bind. even i refresh the page it is not show the changes till re-run the application .


For updating i used this code:

info.subCategory = e.NewValues["Name"].ToString();
info.CategoryName = e.NewValues["RefBlockId"].ToString();
info.Mode = "U";
info.ModifiedUser = Session["UserName"].ToString();
info.RefLocationId = e.NewValues["RefLocationId"].ToString();
info.id = e.Keys[0].ToString();
DataSet ds = clsFloorMaster.fncFloorManipulation(info);
ASPxGridFloor.DataBind();
ASPxGridFloor.CancelEdit();
ASPxGridFloor.UpdateEdit();

推荐答案

如果您仍然需要帮助,请联系DevExpress支持团队,他们可以为您提供帮助:
http://www.devexpress.com/Support/Center/CreateIssue.aspx?issuetype=Question [^ ]

谢谢,
Mehul
http://Mehulharry.com
If you still need help with this then please contact the DevExpress support team and they can help you:
http://www.devexpress.com/Support/Center/CreateIssue.aspx?issuetype=Question[^]

Thanks,
Mehul
http://Mehulharry.com


您必须根据条件将页面加载中的网格再次绑定.why,因为在devexpress gridview中,每个事件都将进入页面加载,因此这次网格将被清除.因此,您必须在页面加载中绑定网格.
you need to bind grid again in page load based onm conditions is mandatory.why because in devexpress gridview each and every event goes to page load so this time thw grid will goes to clear.so you need to bind grid in page load is mandatory.


这篇关于在行插入,更新,删除后,AspxGridview绑定中出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆