Grid view update event form javascript
- by pranay
I have grid control
select
<%--Select--%
</ItemTemplate>
</asp:TemplateField>
</columns>
<pagersettings mode="NumericFirstLast" position="Top" pagebuttoncount="5" />
<pagerstyle backcolor="Pink" />
</cc:AppEngineGridView>
my code on row create
protected override void OnRowCreated(GridViewRowEventArgs e)
{
try
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.ID = this.ID + "_" + e.Row.RowIndex;
e.Row.Attributes.Add("onmouseover", "this.style.cursor='pointer';this.style.font.weight='bolder';");
e.Row.Attributes.Add("onclick", "DoNav('" + ((LinkButton)e.Row.FindControl("lbtn1")).ClientID + "');");
}
}
protected void grduser_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
grdview_RowClickCommand(sender, e);
}
Javascript :
function DoNav(id)
{
$("#"+id).click();
}
Now my question is when i click on the row it do post back but it didnt call rowupdate event
How can do this i.e using javascript to call row update command of the grid.