Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to hide gridview

Status
Not open for further replies.

adugenet

Technical User
Feb 24, 2007
48
US
I am using a required validation control to force the user to select a value from the drop downs.If they are not selected the valiation summary will display a reminder for the user to select a values and once they do the data will be display in the gridview controls.if they want to go back and change the value and did not select the value then I would like to hide the previous gridview result and show them on the validation summary that they need to select a value.How can I hide the gridview in this kind of sceneria. thanks for the help. I try the below code but did not give me the result I wanted

If valSummary.Visible = True Then
gvFedBrdg.Visible = False
Else
gvFedBrdg.Visible = True
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top