Live Chat Icon For mobile
Live Chat Icon

When I try to do an Update from my Datagrid, I keep getting the old/original values. Why?

Platform: ASP.NET| Category: DataGrid

This could happen if you are calling .DataBind everytime the Page is loaded
To avoid this call Databind only for the first request and not for subsequent postbacks.

VB.NET


if not Page.IsPostBack then
	’Your databinding code
end if

C#


if (!Page.IsPostBack)
{
	’Your databinding code
}

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.