Gridview asp.net 2.0 datakeys not loading

Discussion in 'ASP .Net' started by =?Utf-8?B?TGluZ28=?=, Oct 31, 2005.

  1. I'm using beta2. I'm trying to create a gridview dynamically with a passed
    in SQL statement, everything works paging, sorting, and adding columns
    dynamically with the code. Because the hidden column isn't accessible
    anymore I needed to use datakeys to store my key to the record(s) to take
    actions on.

    If I use the standard gridview without dynamically creating anything the
    datakeys are loaded succesfully. If I change any properties with code the
    datakeys aren't loaded.

    Any ideas?
    --
    Thanks,
    Mark Lingen
     
    =?Utf-8?B?TGluZ28=?=, Oct 31, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Narshe
    Replies:
    2
    Views:
    1,047
    Narshe
    Jun 29, 2006
  2. Guest
    Replies:
    2
    Views:
    5,579
    wwwtar
    Nov 2, 2006
  3. =?Utf-8?B?UmljayBEcm9za2U=?=

    Gridview DataKeys property not set when PageIndexChanged fires

    =?Utf-8?B?UmljayBEcm9za2U=?=, Dec 13, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    397
    =?Utf-8?B?UmljayBEcm9za2U=?=
    Dec 13, 2006
  4. Benton
    Replies:
    0
    Views:
    726
    Benton
    Dec 19, 2006
  5. sevilsivle

    GridView.DataKeys appear not to be filled

    sevilsivle, May 2, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    147
    sevilsivle
    May 2, 2006
Loading...

Share This Page