Gridview rowupdating findcontrol c

I have a gridview and a dropdown that appears in my custom edit row ( i added it to the edititemtemplate). The dropdown is in the first columnd and the below is located within : public void rowedit(Object sender, Grid View Edit Event Args e) Drop Down List s = (Drop Down List)Grid View1. I'm giving examples, not typing up your whole app for you. If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. It's probably just example code, so no getting knickers in a bunch over a typo, OK? This code works fine in the first page of grid view, but when I try to edit the 2nd page it does not work.

This code is a bit complex but just add it knowing that we may refer to it in the future.

I'm giving examples, not typing up your whole app for you.

If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there.

ID); This results in a Null reference exception (it hasnt been found) Please any ideas?

runat="server" Allow Paging="True" Allow Sorting="True" Data Source ID="Sql Data Source1" Cell Padding="4" Fore Color="#333333" Grid Lines="None" Auto Generate Columns="False" Font-Size="X-Small" Height="356px" Width="2696px" Is it generating the edit button in the first column (default)? Edit: never mind, this is in the row editing event - the cell hasn't generated the edit template yet I don't think. I'm giving examples, not typing up your whole app for you.