Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15472

Refresh record on datagridview

$
0
0
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,

Viewing all articles
Browse latest Browse all 15472

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>