Click here to Skip to main content
14,880,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am Developing Asp web application using c#, in which I am having Gridview and inside gridview there is Asp linkbutton.

On click of linkbutton i am calling jquery model popUp which is having ok cancel button inside model popup . I want to call GridView RowDataBound event after clicking OK button of Jquery model pop up.

I write the code of postback on Ok button(inside jquery function) which is as follows:

__doPostBack('ctl00_ContentPlaceHolder1_grdOrder_ctl02_btnSpIns', '')

click and page is post back but not calling the GridView RowDataBound.
How can i call that event..Because grid bind on only that event.

can any one help me please...
Thanks in Advance.

1 solution

Please call RowDataBound event inside your button click event.

protected void btnSpIns_Click(object sender, EventArgs e)
      dtgView_RowDataBound(dtgView,new GridViewRowEventArgs(dtgView.Rows[1]));

here "dtgView" GridView Control
also pass RowDataBound event parameter GridView Control and your Binding Row index.
jeet786 4-Jun-12 3:57am
Thanks For Reply..But It doesn't work and didn't call Click Event of that linkbutton after clicking of OK button of Model PopUp.
csharpbd 6-Jun-12 16:27pm
please try to access Click event with JavaScript. i think your problem will be solved. also this code work fine in my application.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900