Gridview Control in a Wizard Control issue

Discussion in 'ASP .Net' started by =?Utf-8?B?VGVycnk=?=, Aug 24, 2006.

  1. Developing Environment: Visual Studio 2.0 ASP.NET
    Question: I have a gridview control inside of a wizard control. I'm having
    issues accessing the SelectedDataKey.Values("ID AS STRING") of the grid
    control. I can access the DataKeyNames and other properties but the
    SelectedDataKey.Values are nothing (null). Once I move the Gridview out of
    the wizard control, I can access the SelectedDataKey value. Any Ideas? I have
    used the following code to try and access the SelectedDataKey value.
    Example:
    Dim strSelectDataKey as string =
    gvTemp.SelectedDataKey.Values("WizardParticipantID").ToString()

    OR

    Dim strSelectDataKey as string =
    CType(Me.wzdSecurity.Controls(0).FindControl("gvTemp"),
    GridView).SelectedDataKey.Values("WizardParticipantID").ToString()

    Thank you for your help in advance.

    Terry
    =?Utf-8?B?VGVycnk=?=, Aug 24, 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. Amir Ghezelbash

    Create user wizard issue

    Amir Ghezelbash, Mar 9, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    423
    Amir Ghezelbash
    Mar 9, 2006
  2. raghav

    Wizard Control Issue

    raghav, Sep 15, 2006, in forum: ASP .Net
    Replies:
    12
    Views:
    571
    Tim_Mac
    Sep 22, 2006
  3. Replies:
    0
    Views:
    592
  4. Andy B
    Replies:
    0
    Views:
    430
    Andy B
    Apr 19, 2008
  5. Morris Neuman

    Wizard Control - Issue 2

    Morris Neuman, Apr 22, 2009, in forum: ASP .Net Web Controls
    Replies:
    7
    Views:
    795
    Thomas Sun [MSFT]
    Apr 28, 2009
Loading...

Share This Page