Reputation: 139
Here's my problem, i have a HyperlinkButton inside a GridViewItem which doesn't respond to my click.
I know there is a lot of properties settable corresponding to click management like IsItemClickEnabled, IsHitTestEnabled etc but i can't find the good match which would allow me to click on my hyperlink.
If you have any idea, i'd be glad to hear it.
Thanks
EDIT1 : with only IsHitTestVisible set to True, i can click on my GridViewItems and obviously on my hyperlink inside. But i don't want any reaction from the item itself when i click on the link.
Upvotes: 1
Views: 303
Reputation: 1
You should use property CommandName
in your LinkButton
coding handle procedure in GridView1_RowCommand
, remember check if (e.CommandName=="Update")
Upvotes: 0
Reputation: 31724
If you want to disable hover/click effects from GridViewItems/ListViewItems - you need to edit the template.
Check here: How to disable ListView's Hover and Tile effects?
Upvotes: 1