/// <summary>
        /// Populate the datagridview with search result
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSearchModules_Click(object sender, EventArgs e)
        {
            if (DbConnector.OpenSQLConnection()) // Open connection to the database
            {
                // Connection opened
                ModuleDataAccess module = new ModuleDataAccess();
                dgvModule.AutoGenerateColumns = false; // To only show the columns needed
                dgvModule.DataSource          = module.SearchModules(txtSearchModules.Text.Trim());

                if (dgvModule.RowCount != 0)
                {
                    ProjectDataAccess project = new ProjectDataAccess();
                    var result = project.FindProject(Convert.ToInt32(dgvModule.Rows[0].Cells[1].Value)).ProjectName;
                    for (int i = 0; i < dgvModule.RowCount; i++)
                    {
                        dgvModule.Rows[i].Cells[2].Value = result;
                    }
                }
            }
            else
            {
                // Connection could not be opened
                MessageBox.Show("Connection to the database could not be established", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            DbConnector.CloseSQLConnection(); // Close connection to the database
        }