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
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