protected void gv_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if ((e.Row.RowState == DataControlRowState.Edit) || (e.Row.RowState == (DataControlRowState.Edit | DataControlRowState.Alternate))) { e.Row.Attributes.Add("onkeydown", "javascript:if(event.keyCode == 13) {__doPostBack('" + gv.UniqueID + "', 'Update$" + e.Row.RowIndex.ToString() + "'); $('#" + Button3.UniqueID + "').click(); __doPostBack('" + gv.UniqueID + "', 'Edit$" + (e.Row.RowIndex + 2).ToString() + "'); return false; }"); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)