DataGrid won't show when i debug.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • neocarl@gmail.com

    #1

    DataGrid won't show when i debug.

    Hi,

    I am fairly new to VB.net and ADO.net. I am having a problem when
    Connecting the database to to website i am creating with vb.net.
    Basically The final step I did was create the datagrid, so the databse
    would fill inside it. However, on the design time window it is
    visible, but when I run it from debug mode, the datagrid dissapears.
    Any suggestion?

    This is the code i wrote inside the fill button to fill the datagrid:

    DsThreeDees1.Cl ear()
    OleDbDataAdapte r1.Fill(DsThree Dees)

    Is there a code to make the datagrid visible or somthing?

    Any help appreciated.
    Thanks alot

  • Karim

    #2
    Re: DataGrid won't show when i debug.

    I am assuming that DsThreeDees1 is your datagrid

    try this
    '---------------
    Dim dt as new DataTable()
    OleDbDataAdapte r1.Fill(dt)
    DsThreeDees1.Da taSource = dt
    DsThreeDees1.Da taBind()
    '----------------
    On Apr 13, 5:47 am, "neoc...@gmail. com" <neoc...@gmail. comwrote:
    Hi,
    >
    I am fairly new to VB.net and ADO.net. I am having a problem when
    Connecting the database to to website i am creating with vb.net.
    Basically The final step I did was create the datagrid, so the databse
    would fill inside it. However, on the design time window it is
    visible, but when I run it from debug mode, the datagrid dissapears.
    Any suggestion?
    >
    This is the code i wrote inside the fill button to fill the datagrid:
    >
    DsThreeDees1.Cl ear()
    OleDbDataAdapte r1.Fill(DsThree Dees)
    >
    Is there a code to make the datagrid visible or somthing?
    >
    Any help appreciated.
    Thanks alot

    Comment

    • neocarl@gmail.com

      #3
      Re: DataGrid won't show when i debug.

      On Apr 13, 12:47 pm, "neoc...@gmail. com" <neoc...@gmail. comwrote:
      Hi,
      >
      I am fairly new to VB.net and ADO.net. I am having a problem when
      Connecting the database to to website i am creating with vb.net.
      Basically The final step I did was create the datagrid, so the databse
      would fill inside it. However, on the design time window it is
      visible, but when I run it from debug mode, the datagrid dissapears.
      Any suggestion?
      >
      This is the code i wrote inside the fill button to fill the datagrid:
      >
      DsThreeDees1.Cl ear()
      OleDbDataAdapte r1.Fill(DsThree Dees)
      >
      Is there a code to make the datagrid visible or somthing?
      >
      Any help appreciated.
      Thanks alot
      Hi, sorry to bother again. I tried typing in the third line of code,
      but DsThreeDees1.da tasource keeps getting underlined. Now in the
      properties i set the datamember even the datasource just as the book
      instructed. Any suggestion?

      Comment

      Working...