VB .NET Question (Simple)

Discussion in 'OT Technology' started by VBGOD, Jan 21, 2003.

  1. VBGOD

    VBGOD Guest

    This should be an easy one.

    When I bind data to the DataGrid Control, I get the following...

    [​IMG]
     
  2. VBGOD

    VBGOD Guest

    I have to click the plus, and then more info collapses.

    [​IMG]
     
  3. VBGOD

    VBGOD Guest

    Click again...

    [​IMG]
     
  4. VBGOD

    VBGOD Guest

    I'm using an Access database for this solution.

    Code:
    Imports System.Data.OleDb
    
    Code:
    'User.ConnectionString is my user object that holds certain information.
    Dim TheConnection As New OleDbConnection(User.ConnectionString)
    Dim Data_Adapter As New OleDbDataAdapter("Select Top 10 * From DHeader", TheConnection)
    Dim DS As DataSet = New DataSet()
    Data_Adapter.Fill(DS, "DHeader")
    DataGrid1.DataSource = DS
    
    Yeah, certain things in .NET actually require MORE steps than VB 6.
     
  5. VBGOD

    VBGOD Guest

    Tell me this is something silly. I've been looking at this for 20 minutes now.
     
  6. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    Yes, but that doesn't explain why it required 4 posts to get your point across! :squint: :fawk:
     
  7. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area
    yes you made a thread to show off your new eleet VB.NET programming skills :fawk:

    good job
     
  8. VBGOD

    VBGOD Guest

    I like breaking things up into different posts. :-/
     
  9. VBGOD

    VBGOD Guest

    Not too elite if I can't do this. :-/
     
  10. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    I actually don't know what the question here is...?
     
  11. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    are you using databinding to bind the dataset to the grid? make sure you drill that datasouce down to the table level, and not just the dataset itself.
     
  12. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    here is what mine looks like... notice the DataSouce property:

    [​IMG]
     

Share This Page