How row index of a gridview is call onRowClickEvent in javascript?
-
How row index of a gridview is call onRowClickEvent in javascript? Also provide some code plz........... :)
you have to code in row click event of the grid view code is protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onClick", "alert("+ e.Row.RowIndex +")"); } }
-
you have to code in row click event of the grid view code is protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onClick", "alert("+ e.Row.RowIndex +")"); } }
i hav 2 grid s in javascript i hav 2 move s4lected row from one grid to another thru btn when i clik selected row it gives me index but when i move the selected row to gv2 after cliking movebtn it also gives me index. but how 2nd time index is move? i am little confuzed i hav to call row index on grid's onRowClick event. how all of this scenario is called ?