I'm using aspxgridview and after adding operation by using RowInserting
event and I don't use the
gridView.CancelEdit();
becuase I need the addform still apperaing to insert another row.
My problem is : how can I clean the data from the control in the addform until I can insert the开发者_StackOverflow中文版 new data for the second row ??
thanks
I got the solve of my problem by using ASPxClientEdit.ClearEditorsInContainer :
clientsideevents EndCallback ="function(s, e) {
if (s.cpIsUpdated)
{
ASPxClientEdit.ClearEditorsInContainer(ContainerId);
}
}"
and add the following code after the RowInserting event:
gridView.JSProperties["cpIsUpdated"] = true;
thanks
精彩评论