GridView access from code

M

MitchW

Hello,

I have a GridView contol that displays records from a database. On the same
form I have a Wizard Control. As the user cycles through the wizard control I
need to other display or hide pages based on the selected row in the
GridView. Hoe would I get access to that data from the Wizard's
(NextButtonClick function).

For example, if the table has a field called inventory and the value is yes,
I want it to display a particular page in the Wizard, if the value was no,
then I want it to skip the page.

Any assistance would be greatly appreciated.

thanks,
mitch
 
S

Stan

Hello,

I have a GridView contol that displays records from a database. On the same
form I have a Wizard Control. As the user cycles through the wizard control I
need to other display or hide pages based on the selected row in the
GridView. Hoe would I get access to that data from the Wizard's
(NextButtonClick function).

For example, if the table has a field called inventory and the value is yes,
I want it to display a particular page in the Wizard, if the value was no,
then I want it to skip the page.

Any assistance would be greatly appreciated.

thanks,
mitch

The GridView control has a SelectedValue property which will be the
DataKey of the selected row. Use that to retrieve any information you
require from the DataBase.
 

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,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top