Niels Bosma
Niels Bosma

Reputation: 11498

ASP.NET: Repeater with Button inside GridView: Call OnRowCommand of the GridView

I have a asp:Repeater in one of my asp:GridView columns. In the template of the repeater I have a button. When that button is clicked, how can I get the OnRowCommand of the GridView to be called instead of the Repeater one?

Upvotes: 0

Views: 1134

Answers (2)

epitka
epitka

Reputation: 17637

Wire the button event directly or take a look at bubbleevent

Upvotes: 1

jrummell
jrummell

Reputation: 43067

Have you tried a button click handler? That would allow you to avoid the GridView and Repeater command events.

Upvotes: 1

Related Questions