Hi,
I have a datagridview called - DgTenantsDetails
On form load it is populated with data from a bindingsource,
Cells include
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,
I have a datagridview called - DgTenantsDetails
On form load it is populated with data from a bindingsource,
Cells include
Code:
Firstname
Lastname
NationalID
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,