Rowupdating aspxgridview c who is freida pinto dating 2016

Rated 3.85/5 based on 957 customer reviews

home-View contains buttons with different options like 'insert a record', 'edit a record', 'update a record' ect. so when the user clicks ' Edit a Record' on ' Home-View', programs takes user to ' View Grid).

Data Bind(); @Tim Schmelter : I have 2 Views ( View Home, View Grid ).

Instead, once you have successfully saved the changes to the database, then perform the logic of querying the database to build the data source and then re-bind the grid, like this: protected void Grid View1_Row Updating(object sender, Grid View Update Event Args e) { Text Box ac = (Text Box)Grid View1.

on the grid, it is using the data it has in the non-updated data source, thus the "old" values appear. Find Control("Text Box1"); Text Box a = (Text Box)Grid View1.

Find Control("Text Box4"); Text Box d = (Text Box)Grid View1.

Find Control("Text Box5"); Text Box k = (Text Box)Grid View1.

I am able to get the value of the field I need however, I am not able to update the fields beneath the first row.

I tried using Grid View Row to find the field and change it however it does not seem to have a method to directly update fields rather retrieve cell information. I might try that and see if you can assign an ID to a datasource and bind it in code behind.If not I'll try the suggestion below =) I was doing databinding in my Page_Load event and when I clicked "Update" the Post Back was done, so was the Page_Load event fired.My problem is,when i click edit,textbox appears in all columns and i write ehatever i want to update,then i click on update button,the rows gets updated in the database,but on page it shows previous values. Find Control("Text Box1"); Text Box a = (Text Box)Grid View1. Please help code behind- protected void Grid View1_Edit(object sender, Grid View Edit Event Args e) protected void Grid View1_Row Canceling Edit(object sender, Grid View Cancel Edit Event Args e) protected void Grid View1_Row Updating(object sender, Grid View Update Event Args e) { Text Box ac = (Text Box)Grid View1.

Leave a Reply