Get datakey from gridview rowupdating chemistry com dating
I'm approaching this by writing some code for the Grid View's Row Updating event.
The problem is I don't know how to access those checkboxes that were generated by the Repeater, so I'm not getting very far.
Someone have an idea where the controls in the Grid View are re-created and when the controls are repopulated from the view State ?
This sample of code works fine for every control except for the grid View.
ASP drives me nuts, can someone please point me to what I am sure is a one line simple solution. "Grid View2" runat="server" Back Color="Light Goldenrod Yellow" Border Color="Tan" Border Width="1px" Cell Padding="2" Fore Color="Black" Grid Lines="None" Page Size="50" Auto Generate Columns="False" Data Key Names="Import ID" Data Source ID="Sql Data Source1" onrowupdated="Grid View2_Row Updated" Visible="False" onrowcommand="Grid View2_Row Command" onrowupdating="Grid View2_Row Updating" I figured out what my problem was, I have two gridviews and the line I put in was referencing gridview1.
That is why I probably shouldn't use the default control names and use something more descriptive.
Everything works fine, selecting the row to edit, updating the row.
When I finish editing the row, I rebind the datagrid because I want the record that was just edited to drop of the grid.