I have a grid view which gives project info.I have added edit button.
My grid view looks something like this
**ProjectID** **ProjectName** **Action**
edit 231 abc xyz
edit 1223 pqr asj
edit 325 asgf wrgag
Now When i click on edit it should point to another page.
How to Set NavigateUrl for that AutogeneratedEdit
Don’t auto generate the edit. Put a field in the grid view declaration for it. In the field, put an anchor tag runat server. OnRowCreated, find the anchor control and set the href to your URL. I have done it that way several times. I can provide sample code if needed.
UPDATE: Sample Code Below
In ASPX/ASCX:
In Codebehind: