Edit item template in rowdatabound

Posted by Dotnetcreed under ASP.NET on 11/18/2011 | Points: 10 | Views : 2346 | Status : [Member] | Replies : 3
Hi ,

In my Grid view i want to find a button which is in the edit template, on the
row data bound .

I tried many methods using row index and other . it seems that Edit template will not be available in the row data bound events .
Please check the scenario before posting the repy .

Regards,
Sankardeep V

Code till you bleed..........


Responses

Posted by: Ndebata on: 11/18/2011 [Member] Starter | Points: 25

Up
0
Down
Try to match the rowindex with that of editindex, then use FindControl method to find the control in edit template. I assume you have set the editindex to edit a particular row.

Thanks,
Debata

Dotnetcreed, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dotnetcreed on: 11/18/2011 [Member] Starter | Points: 25

Up
0
Down
Hi ,

Tried not working ............

Regards,
Sankar

Code till you bleed..........

Dotnetcreed, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Blessyjees on: 11/18/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

What is the purpose of this. Edit item template does not exist in the RowDataBound event.

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Dotnetcreed, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response