-
August 17th, 2021, 11:08 AM
#1
Refresh record on datagridview
Hi,
I have a datagridview called - DgTenantsDetails
On form load it is populated with data from a bindingsource,
Cells include:
Code:
Firstname
Lastname
NationalID
Now, when a user clicks one of the cell on the datagridview (DgTenantsDetails) it sets another panel - PTUpdate.Visible = True
and it contains textboxes for Firstname, Lastname and NationalID.
Also, the values from the selected row on the DgTenantsDetails are then populated in these textboxes, respectively.
Lets assume a user does an update on the Firstname and Lastname and clicks update, the data is populated to the database successfully.
Now, I would like to ONLY refresh the selected record on the DgTenantsDetails will all the changes at the end of the Update Statement.
How can I best do that ?
Thanks,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|