Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I have done my invitee management project for about 8 0 % but stuck with the edit part. I want the program to do the
I have done my invitee management project for about but stuck with the edit part. I want the program to do the following :
When we click view, only datagridview appears.
When we want to modify the data, go to datagridview inside the datagridview can add, update or delete. After modification, click edit. The data will automatically refreshes in the datagridview
I will attach my coding here, please help me:
private void btnEditClickobject sender EventArgs e
Handle multiple delete in DataGridView
Update the shared DataTable with changes from DataGridView
dataGridViewEndEdit; Commit any pending edits
adapter.UpdatedataSetTablesInvitees; Update the database with changes
RefreshDataGridView; Refresh DataGridView to reflect the changes
private void btnClearClickobject sender EventArgs e
Clear all textboxes and reset DataGridView visibility
textBoxName.Text ;
textBoxTableNo.Text ;
textBoxsearchInv.Text ;
textBoxsearchTableNo.Text ;
dataGridViewDataSource null;
dataGridViewVisible true;
RefreshDataGridView;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started