ASP.Net Gridview, How to activate Edit Mode based on ID (DataKey)

Posted by Jon P on Stack Overflow See other posts from Stack Overflow or by Jon P
Published on 2009-01-13T06:23:24Z Indexed on 2011/01/02 15:54 UTC
Read the original article Hit count: 145

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about gridview