C# transfer data from an another form via MySQL
I am building a simple CRUD application in C# WinForms to practice database operations. I have a DataGridView that loads user data, and I want to open a separate edit form (formEdit) when a cell is clicked, pass the data to it, and update the database upon clicking a save button. Here is how I currently pass the data from the main form to the edit form: Form1.cs (Cell click event) private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { // creating new form for edit context formEdit f2 = new formEdit(); // Give the clicked content to the
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.