Click to See Complete Forum and Search --> : Grid view with AutoGenerateEditButton


johnsonlim026
September 17th, 2007, 12:48 AM
Hi,
I am using the AutoGenerateEditButton feature provided in ASP.NET 2.0.This features will automatically generate cancel and update button when i click the edit button.

I put label in grid view's item template ad textbos in Edit Item Template.
My problem happen when user click the cancel button, the selected row 's does not switch back to label unless the click on the other row.Does anyone has any idea on this?

johnsonlim026
September 17th, 2007, 09:07 PM
I have set the row'row state which i cancel updating to normal, but it do not reflect in the grid view and allow user to edit.Does anyone has idea on this?Below is my coding


Protected Sub gvEntity_RowCancelingEdit(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles gvEntity.RowCancelingEdit

gvEntity.Rows(e.RowIndex).RowState = DataControlRowState.Normal


End Sub