Gridview DataKeys property not set when PageIndexChanged fires

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In the PageIndexChanged event of an ASP.Net 2.0 GridView the Rows property
has rows but the DataKeys property has 0 Items ?

This definitely seems like a bug to me. Has anyone come up with a good
workaround ?
 
DataBinding the GridView again at the top of PageIndexChanged fixes it but
obviously not ideal. Hopefully its not actually causing another trip to the
SQL server....
 
Back
Top