Thursday, 22 December 2005

Row keys for an ASP.NET 2.0 GridView

I only just discovered this today, that if you tell a GridView control via its DataKeyNames property what the key column for each row is, then you can retrieve that value later by using the DataKeys property.


No comments: