ASP.Net Gridview, How to activate Edit Mode based on ID (DataKey)
- by Jon P
I have a page, lets call it SourceTypes.aspx, that has a a GridView that is displaying a list of Source Types. Part of the GridView is a DataKey, SourceTypeID. If source TypeID is passed to the page via a query sting, how to I put the Gridview into Edit mode for the appropriate row based on the SourceTypeID?
The GridView is bound to a SQlDataSource object.
I have a feeling I am going to kick myself when the answer appears!!
I have looked at Putting a gridview row in edit mode programmatically but it is some what lacking in specifics