1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Datagrid code problem

Discussion in 'Software Development' started by augie0216, Sep 4, 2004.

Thread Status:
Not open for further replies.
  1. augie0216

    augie0216 Thread Starter

    Jul 18, 2004
    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
    dgSupplier.Visible = True

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

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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/269969

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice