Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Loading A Data Grid from A Module

Loading A Data Grid from A Module

Scheduled Pinned Locked Moved Visual Basic
tutorialquestioncssdatabase
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wvjim
    wrote on last edited by
    #1

    I am using a module to write a subroutine that is doing some database stuff. I am calling this module from the button click event on the web form. At the end of the module, I would like to set some of the datagrid properties on the web form. Is it possible to call the datagrid from the module?? How?? How do I reference the form itself? In the web form module controls are accessed with Me.SqlDataAdapter1.SelectCommand.CommandText = strSql for example. When I place that in my module it doesn't know how to handle the me and if I leave that off nothing is returned to the main/form module. Thanks,

    A D 2 Replies Last reply
    0
    • W wvjim

      I am using a module to write a subroutine that is doing some database stuff. I am calling this module from the button click event on the web form. At the end of the module, I would like to set some of the datagrid properties on the web form. Is it possible to call the datagrid from the module?? How?? How do I reference the form itself? In the web form module controls are accessed with Me.SqlDataAdapter1.SelectCommand.CommandText = strSql for example. When I place that in my module it doesn't know how to handle the me and if I leave that off nothing is returned to the main/form module. Thanks,

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      Pass datagrid as parameter to a module subroutine so that you can access it's properties through module.

      1 Reply Last reply
      0
      • W wvjim

        I am using a module to write a subroutine that is doing some database stuff. I am calling this module from the button click event on the web form. At the end of the module, I would like to set some of the datagrid properties on the web form. Is it possible to call the datagrid from the module?? How?? How do I reference the form itself? In the web form module controls are accessed with Me.SqlDataAdapter1.SelectCommand.CommandText = strSql for example. When I place that in my module it doesn't know how to handle the me and if I leave that off nothing is returned to the main/form module. Thanks,

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        You can try using the Name of the form, NOT the titlebar name, but the Name property in the form's properties. RageInTheMachine9532

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups