Gridview Control in a Wizard Control issue

G

Guest

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top