Radgrid not updating after databind


27-Feb-2016 11:06

We use gridview to view data in tabular format on the web page.

If the web page is not reloaded for some time, and somedata manipulation(insert/update/delete) occurs at backend, then the viewer is presented with older(wrong) data.

This function is use to fetch data from the Student Record table, fills data in a Data Table object and find it to a Grid View control using the Data Source property.

In this code below code, you see database table columns binding with the bound fields and formatting is provided using the template fields.

The stored procedure first checks if the record exists in the table.

If the record exists then the table is simply updated else a new record is inserted in the database.

Below you will notice that I have placed a Script Manager and an ASP. The following stored procedure is used to Add and Update the records in the database.

Net Grid View Control along with a Modal Popup Extender that will be used to Add or Edit the records in the Grid View Control.

When I do a postback the Data Binding event fires twice - in both the Process Post Data and Pre Render stages of the page life cycle.

Text; bit when ichange it to string id =((Text Box) Grid View1.

If you are not familiar of binding the Grid View the way then I would suggest looking at my previous example first before you proceed to this example.

The screenshot below describes the data being saved into the database table.

You will notice that a progress bar is being displayed until the data is updated in the database.Parameter name: index Any idea what I need to do to fix this issue?



If you experience symptoms of anxiety it is likely that you will recognise many of the feelings, physical symptoms, thoughts and behaviour patterns described below.… continue reading »


Read more

Our chat room have Moderators 24/7 to make it the safest and sexiest chat around.… continue reading »


Read more

Zachary co-authored book, music and lyrics for the hit original stage musical (soundtrack on Walt Disney Records) and has written songs and developed projects for Disney Animation, Disney Channel and theme parks around the globe.… continue reading »


Read more

It's not always easy to tell the difference between a guy who's seriously into you and one who's wrapped up in the moment. Lust is a powerful thing, and some men will do just about anything in the sweet spot between "nice to meet you" and "sex." Closing the gap between point A and B can be a goal some men pursue with the same vigor as Roger Federer practicing for, playing in, and attempting to win Wimbledon, for example.… continue reading »


Read more