This is a migrated thread and some comments may be shown as answers.

Button column and click event

1 Answer 105 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Attilio
Top achievements
Rank 2
Attilio asked on 11 Aug 2009, 11:51 AM
Hello everybody.

We have a RadGridView with 4 columns: 2 are simply text column, while 2 have a button.

The problem we can't figure out is: how we can know the row index number (=item) starting from the button click event?

Thank you for your cooperation.

Attilio Gelosa.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 11 Aug 2009, 11:57 AM
Hello Attilio,

In Button Click event handler you can cast the sender argument to Button and check DataContext property.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Attilio
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Share this question
or