Making an entire row clickable in a gridview

前端 未结 6 1852
北恋
北恋 2020-12-03 05:44

I have a gridview and I need to make an event fire when a row is clicked.

Is there an existing GridView event I need to bind to to make this happen?

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 06:15

    There is no existing event to handle an entire row click. Your best bet is to have some javascript (maybe via ASP.NET Ajax) detect the click and fire the event yourself. Alternatively you would have to create a button or checkbox that the user selects.

提交回复
热议问题