Sunday, 8 September 2013

How can I register a control with ClientScriptManager.RegisterForEventValidation

How can I register a control with
ClientScriptManager.RegisterForEventValidation

I have gridview which I need to trigger inline editing from its code
behind class. How to implement
ClientScriptManager.RegisterForEventValidation.
<asp:GridView ID="gridViewTest" runat="server"
Height="145px" Width="369px" onrowdatabound="gv_RowDataBound"
OnRowEditing="gv_RowEditing">
</asp:GridView>
protected void gv_RowEditing(object sender, GridViewEditEventArgs e)
{
gridViewTest.EditIndex = e.NewEditIndex;
}

No comments:

Post a Comment