954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Gridview and formview, Gridview not updating immdly.

I have gridview and formview, when clicking on select(Edit) button in gridview the record will be displayed in formview. In formview i do all the operations like insert,edit,delete....Everything fine except gridview refresh problem.

that is when i insert a record from formview the GRIDVIEW NOT UPDATING ROW FOR THE FIRSTTIME WHEN I CLICK INSERT/UPDATE/DELETE BUTTON but it can after clicking on any other buttons (second time, ie second event).

Pls help me where i am doing mistake....

FYI i am using updatepanel, on page_load i have added gridview1.DataBind();

Thanks
Mahir

mahir78
Newbie Poster
3 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

I have experienced this also. I got around it by doing a databind again in the item command handler for the formview.

hollystyles
Veteran Poster
1,182 posts since Feb 2005
Reputation Points: 262
Solved Threads: 68
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You