private void btnSearch_Click(object sender, EventArgs e)
        {
            //Connect to the Database
            string        connectionString;
            SqlConnection connection;

            connectionString = @"Data Source={SQL Server};SERVER=Nsccsqlinst16.nscc.edu;Database=CITC_CTEAM;UID=CITC_CTEAM;PWD=ITROCKS;";
            connection       = new SqlConnection(connectionString);
            connection.Open();

            frmResultsGrid grid = new frmResultsGrid();

            grid.Show();
            this.Hide();
            this.Dispose();

            //Close the connection
            connection.Close();
        }
Example #2
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            //Logic here that will populate the grid view
            //Connect to the Database
            string        connectionString;
            SqlConnection connection;

            //connectionString = @"NEED THE CONNECTION HERE";
            //connection = new SqlConnection(connectionString);
            //connection.Open();

            frmResultsGrid grid = new frmResultsGrid();

            grid.Show();
            this.Hide();
            this.Dispose();

            //Close the connection
            //connection.Close();
        }