problem : editing and deleting rows in datagridhttp://forums.asp.net/t/330708.aspx/1?problem+editing+and+deleting+rows+in+datagridMon, 08 Sep 2003 13:39:11 -0400330708330708http://forums.asp.net/p/330708/330708.aspx/1?problem+editing+and+deleting+rows+in+datagridproblem : editing and deleting rows in datagrid hi,guys I met a problem and want to ask you guys for help. I am using DataGrid to edit rows.In the codebehide:<pre class="prettyprint">TextBox txtAppointment = (TextBox)e.Item.FindControl(&quot;editappointment&quot;); In the aspx file:</pre>But, every time when i want to update the value, only the origianl value appear. It seems no change, why? Thanks... 2003-09-05T14:50:20-04:00332440http://forums.asp.net/p/330708/332440.aspx/1?Re+problem+editing+and+deleting+rows+in+datagridRe: problem : editing and deleting rows in datagrid hi, guys I figure out it that makes above problem happens, as so to when it happens to you, you can check it. Actually it is simple, the reason why the original value appear is you didn't make your datagrid bind to the postback. What is the correct one is bellow: using c#: if(!Page.IsPostback){ DataGrid_Bind(); } As far as i understood, when you click the update page will load again, since this is the post back so you don't need bind the datagrid again which can make the first value(in dropdownlish) or the original value(in textbox) submit. ----------------------- let's share the idea! 2003-09-08T13:30:45-04:00