Hi TS,
I reviewed your previous case. This behavior looks really strange. Firstly could you test if RowUpdating fires? If it does most likely the updating is cancelled in a phase between RowUpdating and RowUpdated. For example, if you add following line in RowUpdating event handler the RowUpdated event will not get triggered.
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { e.Cancel = true; }
If there's no such code another possible reason I could think of is probably the custom GridView is bound on every postback, like below:
protected void Page_Load(object sender, EventArgs e)
{
this.GridView1.DataBind;
}
It may cause the update not working and the state of the GridView will not shift back to readonly mode after Update button is clicked.
If none of the above information can help to solve this problem I think I need some repro code to do further troubleshooting. Could you send me a demo that can reproduce this problem? My email is update here after sending the project in case I missed that email.
Regards,
Allen Chen
Microsoft Online Support
Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at:
.
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 2 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx This posting is provided "AS IS" with no warranties, and confers no rights.