So what you need to do is store the data source (maybe in Session) and only bind rebind the data when you absolutely need to (Like during the Is Not Post Back) Do you understand?
Please post the code for your Page_Load method and the that handles your Update (your C# code) so we can have a better look at what's going on. Please give some references and/or details of how to. This wipes out the data provided by the user during editing (editing happens after the page load).
The ...gridview control in another gridview control Hi ia have a questioni have a gridview control which contains button in one my question is i need another gridview to be placed in the first gidviewso that when i click on the button the second gridview will populate the my question is how to place second gridview in first is there any approach like first grid itself acting as parent and child.please help me Hi sirikalavalapalli: I think nested gridview will help you. Getting Information from the Controls (Template Field or Bound Field ) from any of the Data Presentation Controls Hello Everybody, I have a very important question for me. It has three Bound Fields and one Template Field I want to get information from any of the record (row,line etc ) using any of the Bound Fields or Template Fields.
And also I want to accomplish this not only with Grid View but also other Data Presentation Controls, Details View Form View and Repeater.
It looks as though you can't use keys if you are using templates fields or if you are not using the built in data controls.
I haven't had time to verify this but that seemed to be the case from reading this.
Text = Session("Address") Else lbl Company Address.
Text = "No Address Found." End If If Not Is DBNull(Session("Country")) Then lbl Company Country.
But I couldn't see any solution and see that many people ask the same ... :- On Disabling Controls Present inside a Gridview control Hi All, We have A requirement Where we have disable controls inside a grid.Microsoft is conducting an online survey to understand your opinion of the Technet Web site.If you choose to participate, the online survey will be presented to you when you leave the Technet Web site. If you reset the Data Source at this stage, your values for updating will be lost. I actually don't know how to write the Row Updating function, I just found it from the internet, and so of course it's not working. Please give some references and/or details of how to. Ok what's happening is that you are binding the data source for the Grid View every time a postback occurs in the Page_Load method. Count ----------- The most common problem for losing new data entered while updating a Grid View or Data Grid is that you are resetting the Data Source for the Grid View or Data Grid in the Page_Load method. I actually don't know how to write the Row Updating function, I just found it from the internet, and so of course it's not working.