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

SelectedIndexChanged firing when a button on the form is pressed.

2 Answers 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pete
Top achievements
Rank 1
Pete asked on 30 Dec 2013, 09:53 AM

Hi,

I have a RadGrid with a selectedindexchanged event. When I click on a row, the event fires, and I can do what I want. However, after selecting a row, if I click a button on the form (nothing to do with the grid), the selectedindexchanged event fires again, and I don't get the button press.



Any ideas how to stop this please?



Thanks

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Dec 2013, 11:40 AM
Hi Pete,

Unfortunately I was not able to reproduce the issue. Actually the SelectedIndexChanged event of RadGrid will be raised only when you trigger a selection from Select/Deselect GridButtonColumn or if you have set property AllowRowSelect and EnablePostBackOnRowClick to true. Please provide  the exact steps or the code to reproduce the issue.

Thanks,
Shinu.
0
Pete
Top achievements
Rank 1
answered on 30 Dec 2013, 11:41 AM

Hi,

I have gone with ItemCommand and checking for RowClick - this seems to work for me



Thanks



Pete


Tags
Grid
Asked by
Pete
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Pete
Top achievements
Rank 1
Share this question
or