Loading A Data Grid from A Module
-
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,
-
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,
-
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,
You can try using the Name of the form, NOT the titlebar name, but the Name property in the form's properties. RageInTheMachine9532