GridView.DataKeys appear not to be filled

Discussion in 'ASP .Net Web Controls' started by sevilsivle, May 2, 2006.

  1. sevilsivle

    sevilsivle Guest

    Hi,

    I've set up the DataKeyNames attribute for my GridView gridBlackList which
    is contained on a control. When I request the gridBlackList.DataKeys on the
    PageIndexChanged event, the DataKeys array appears to be empty. However, when
    I put a breakpoint on the Page_Load of the control the DataKeys array seems
    to be filled out correctly.

    Does anyone hav ea clue of what is going on?

    Thanks in advance,
    Greetings,
    Casper
    sevilsivle, May 2, 2006
    #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. =?Utf-8?B?TGluZ28=?=

    Gridview asp.net 2.0 datakeys not loading

    =?Utf-8?B?TGluZ28=?=, Oct 31, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    597
    =?Utf-8?B?TGluZ28=?=
    Oct 31, 2005
  2. Narshe
    Replies:
    2
    Views:
    1,036
    Narshe
    Jun 29, 2006
  3. Guest
    Replies:
    2
    Views:
    5,559
    wwwtar
    Nov 2, 2006
  4. =?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:
    391
    =?Utf-8?B?UmljayBEcm9za2U=?=
    Dec 13, 2006
  5. Benton
    Replies:
    0
    Views:
    719
    Benton
    Dec 19, 2006
Loading...

Share This Page