I have a RadGrid that uses a SQLDataSource.
I have a Select button in the grid, code at the bottom.
In the SelectedIndexChanged event for the grid I am capturing the .SelectedValue and using that to perform other SQL commands.
Issue is that, as an example, if I select the first row in my Grid but the database has been updated to have another row that would be before it (based on order/filtering rules) the selectedvalue that is given is this new record.
I figure it must have something to do with the "NeedDataSource" event, but I can't figure out what... I would think that if I select a value for a grid, there should never be any rebinding done until after that is already selected, else I run into problems such as this...
I have a Select button in the grid, code at the bottom.
In the SelectedIndexChanged event for the grid I am capturing the .SelectedValue and using that to perform other SQL commands.
Issue is that, as an example, if I select the first row in my Grid but the database has been updated to have another row that would be before it (based on order/filtering rules) the selectedvalue that is given is this new record.
I figure it must have something to do with the "NeedDataSource" event, but I can't figure out what... I would think that if I select a value for a grid, there should never be any rebinding done until after that is already selected, else I run into problems such as this...
<
telerik:GridButtonColumn
Text=">" CommandName="Select">
<
HeaderStyle
Width
=
"10px"
/>
<
ItemStyle
Width
=
"10px"
/>
</
telerik:GridButtonColumn
>