Problem: Get new value when editting Datagrid

Hi All,
I am trying to gather the new value, when I have finished edditing a particular column in my datagrid, but it still gives me the old value.. Must be that I dont extract the value correctly, because when I trace it the from collections show the new value..
dgList:_ctl2:txtAccount New Value

You need to make sure no databinding occurs on postback - use IsPostback property of the Page to achieve that. That is the most likely reason for you getting the old value. If you databind on postback the value posted will be replaced by the one from the datasource.
CheersBug [MCSD]

0

Bug_Bugger

9/2/2004 11:50:04 AM

Reply:

Similar Artilces:

Cant get new/edited values from cells when editing a datagrid ...
I'm having some trouble with editing the data in a datagrid. When i go into edit mode and change to values, they revert to the original ones as soon as the update command is run. My update command runs a stored proc on a sql server database and i have checked that it is working by giving it fixed strings as the parameters. It works fine and updates the values as required. The problem is, when i try to feed in the cell values to the stored proc, it just saves the original values that were in the cells and not the values that i updated. Why ...

Problem getting a Datagrid to allow users to edit it...(in line editing)
Hi,
In my DNN custom module I have three panels with various controls on them. If a user clicks the "edit database" button...it makes all these panels disappear and one appear. That panel has a datagrid on it. My goal is to allow users to manipulate the database information using the datagrid. The datagrid is bound to a dataset which is pulled from the database and the data displays fine. I tried adding a button column to the datagrid (I'm using Visual Studio) and it puts a nice "edit" button to the left of every row in the database. Very nice. My understanding ...

Problem How to get a Control Id When i am adding a new control to my webpage
Hi All,
I am doing a new web site in Asp.2.0, here i am using masterpages,webparts, and WebUserControls. what my problem is i did some webuser controls like Announcements, Categories, Links, Like that. so now i am adding these controls in my webparts where ever i need. so the problem is a single control i am using 2 to 3 times in a page. so at that time i need a id for that control. I know when i am adding a control then it has an id. so how to know that id. please help me in this regard.Regards,Ram Mohan Rao Adduri,Techinical Associate,eSymbiosisHyderabad.Mobile: 9490118545...