I have a GridView with a column having two buttons: Edit and Delete. The GridView current item is the row that is highlighted that in some cases happens to be different from the row where the Edit/Delete button was clicked, therefore returning the wrong current item
Example: Grid has 4 rows. Row 1 happens to be highlighted. If the user clicks on either one of the Edit/Delete buttons in Row 2, we get Row 1 current item, instead of Row 2
Below is the XAML declaration for the Grid View
Example: Grid has 4 rows. Row 1 happens to be highlighted. If the user clicks on either one of the Edit/Delete buttons in Row 2, we get Row 1 current item, instead of Row 2
Below is the XAML declaration for the Grid View
<
telerik:RadGridView
Grid.Column
=
"0"
Grid.Row
=
"0"
Width
=
"1324"
HorizontalAlignment
=
"Left"
Name
=
"grvRetScheduleTerms"
VerticalAlignment
=
"Top"
AutoGenerateColumns
=
"False"
ActionOnLostFocus
=
"None"
CanUserFreezeColumns
=
"False"
SelectionUnit
=
"FullRow"
SelectionMode
=
"Single"
IsSynchronizedWithCurrentItem
=
"True"
CanUserDeleteRows
=
"True"
IsReadOnly
=
"False"
CanUserSelect
=
"True"
CanUserInsertRows
=
"False"
FontSize
=
"16"
AddingNewDataItem
=
"grvRetScheduleTypes_AddingNewDataItem"
RowEditEnded
=
"grvRetScheduleTypes_RowEditEnded"
>