Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:
C#
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();
Posted
Comments
TinTinTiTin 20-Jan-12 5:18am    
have you initialized DataSource property of your GridView?

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
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900