Gridview not updating on postback

In my latest job, I've been doing a lot of work with Microsoft and ASP. I've recently started using the AJAX library for ASP.

gridview not updating on postback-3gridview not updating on postback-50

Hope this gives you a good idea that what needs to do to update controls which is outside of updatepanel during partial page rendering. For the graded field, as this value is fetched from the database, ur query could also be manipulated so that the value is empty when the fieldtype= text field Rejo Hi chinu1310 But as you said you are programatically creating data source it means you fire query find result set and store in dataset and than bind dataset to gridview. ---- No dataset a custom entity list But when you click on any other button on page basically you are not running that query part again and thats what looses the data.----- Its not the data thats lost grid is filled up fine its just the option link gets added back in where it shouldnt be Thanks again Hi Rejojohny The odd thing is is that it doesnt appear to be rebinding the datagrid i put breaks in both the databind and rowdatabound methods and it never reaches them on the postback.---- Not sure what the ID will be as its not a template field I really hadnt thought about the graded field as well and you are right this re-appears as well as the options link.Thanks again for taking the time to look at this Sorry but i moved on in the project and took a different approach, i should however have thanks you guys for all the effort you put in and closed it of so sorry about that.Rejojohny however is right a rebind on the grid would have fixed the problem but would have conflicted with something else i was doing on the page.Bob, if no comments is to be accepted, I would atleast recomment that this question be not deleted because my comments are not invalid .. Monty SR, if you feel otherwise, you are welcome to comment ..While registering we need to provide the Control name along with the data item for the control which we want to render. we can call args.get_data Items()to retreive the data from the dataitem collections.If we click on Button1 now, it will update the text of Label1, but though we have registered the Label2 with the script manager still its value will not be reflect. After that we have set the Control Value by from the data item collection using .you could also rebind the grid in the selected index changed event ..you could also try making the controls visible property to false instead of updating the text to " " ..

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “gridview not updating on postback”