Datagrid code problem

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

augie0216

Thread Starter
Joined
Jul 18, 2004
Messages
6
I am working on a winform I have created two datagrid control instances on the form to display suppliers and customers I want only one grid visible at a time. I have created menu items to switch between suppliers and customers.
I have it coded but is isn't doing what it should do. I just starting to learn vb.net so I don't know where I made the mistake(s). Here's the code I wrote:

Private Sub mmuViewSupplier_Click....
If dgSupplier.Visible = True Then
dgSupplier.Visible = False
Else
dgSupplier.Visible = True

Private SubmmuVeiwCustomer_Click...
If dgCustomer.Visible = True Then
dgCustomer.Visible = False
Else
dgCustomer.Visible = True


Thanks
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top