Problem with my DataGridView in C# Windows Form

Good day, so I’ve been working on this project in one of our courses. It’s a sales and inventory system, and I am having problems with my DataGridView.
InvenToryForm

It doesn’t fill the space, even though its dock is already on fill. And I have two DataGridViewImageCellLayout which is Edit and Delete at the column and it doesn’t show up. It’s supposed to look like this.

TransactiomForm

Here’s my code in my DataGridView in InventoryForm

private void dgvInventory_CellContentClick_1(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0 && e.ColumnIndex >= 0)
            {
                DataGridViewRow row = dgvInventory.Rows[e.RowIndex];
                string columnName = dgvInventory.Columns[e.ColumnIndex].Name;

                if (columnName == "Edit")
                {
                    ManageInventoryForm manageInventory = new ManageInventoryForm(this);
                    manageInventory.txtProductID.Text = row.Cells["product_id"].Value.ToString();
                    manageInventory.txtProductName.Text = row.Cells["product_name"].Value.ToString();
                    manageInventory.txtQuantity.Text = row.Cells["quantity"].Value.ToString();
                    manageInventory.txtStock.Text = row.Cells["minimum_stock"].Value.ToString();
                    manageInventory.txtPrice.Text = row.Cells["price"].Value.ToString();
                    manageInventory.EnableButtons(false, true);
                    manageInventory.ShowDialog();
                }
                else if (columnName == "Delete")
                {
                    if (MessageBox.Show("Are you sure you want to delete this Product?", "Delete Record", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                    {
                        using (SqlConnection conn = new SqlConnection(connectionString))
                        {
                            conn.Open();
                            // Delete from tbl_product
                            SqlCommand cmdProduct = new SqlCommand("DELETE FROM tbl_product WHERE product_id = @product_id", conn);
                            cmdProduct.Parameters.AddWithValue("@product_id", row.Cells["product_id"].Value);
                            cmdProduct.ExecuteNonQuery();

                            // Delete from tbl_stock
                            SqlCommand cmdStock = new SqlCommand("DELETE FROM tbl_stock WHERE product_id = @product_id", conn);
                            cmdStock.Parameters.AddWithValue("@product_id", row.Cells["product_id"].Value);
                            cmdStock.ExecuteNonQuery();

                            MessageBox.Show("Product and stock records have been successfully deleted!");
                            LoadInventory(); // Refresh the grid after deletion
                        }
                    }
                }
            }
        }
    }

I have no idea what’s wrong with my code, please help me out.

here’s also the code for my TransactionForm

private void dgvTransaction_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0 && e.ColumnIndex >= 0)
            {
                DataGridViewRow row = dgvTransaction.Rows[e.RowIndex];
                string columnName = dgvTransaction.Columns[e.ColumnIndex].Name;

                if (columnName == "Edit")
                {
                    TransactionForm manageTransaction = new TransactionForm();
                    manageTransaction.txtProductID.Text = row.Cells[1].Value.ToString();
                    manageTransaction.txtQuantity.Text = row.Cells[2].Value.ToString();
                    manageTransaction.txtTime.Text = row.Cells[4].Value.ToString();
                    manageTransaction.ShowDialog();
                }
                else if (columnName == "Delete")
                {
                    if (MessageBox.Show("Are you sure you want to delete this transaction?", "Delete Record", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                    {
                        using (SqlConnection conn = new SqlConnection(connectionString))
                        {
                            conn.Open();
                            SqlCommand cmd = new SqlCommand("DELETE FROM tbl_transactions WHERE transaction_id = @transaction_id", conn);
                            cmd.Parameters.AddWithValue("@transaction_id", row.Cells[0].Value);
                            cmd.ExecuteNonQuery();
                            MessageBox.Show("Transaction record has been successfully deleted!");
                            LoadTransaction(); // Refresh the grid after deletion
                        }
                    }
                }
            }
        }

I tried adding the actual paths of the images for the edit and delete but still doesn’t work

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật