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

SelectionChanged when using up/down arrows Q2 2007

1 Answer 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
maydaytx
Top achievements
Rank 1
maydaytx asked on 09 Oct 2007, 02:43 PM
Clicking on a row in a grid produces the desired result...the SelectionChanged event is fired and grid.CurrentRow.DataBoundItem is the correct item. However, using the down/up arrow to change the selection on the grid doesn't work as expected:  The SelectionChanged event is actually fired twice, both times grid.CurrentRow.DataBoundItem is actually the previously selected item.

Say the grid has 2 items. If I click on the first row, SelectionChanged fires with the first item as the DataBoundItem.  Then, if I press the down arrow, SelectionChanged fires twice, again both times with the first item as the DataBoundItem.

~DuckLeg
 |
 |
/|\

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 09 Oct 2007, 04:27 PM
Hello DuckLeg,

Please try with the CurrentRowChanged/CurrentRowChanging event, instead of SelectionChanged. I think this will resolve your case.



Sincerely yours,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
maydaytx
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or