GridView problem please help
-
Hello friends First at all happy new year of all of you.All the best in next one.)) Cloud you help me please.I will describe the problem.It seens stupid but i did not use VS from 1 year and just now start it again. So we have GridView inside of it are templates for example label and text box for edit mode which are connected with some db.So the problem is appear when i try to update that data exactly in updating event.After pressing update button in quick watch i see that it is give me old value not what i had change ready!!!For example in label value is 1 and when you press button edit in text box is 1 too but my goal is to be changed to 2 so in text box value is changed to 2 but after pressing of bot ton the value which is extract is 1???Pleas cloud you tell me some body why.Unfortunately the at the moment i am not in-front of my pc but let try the code. string name; name=((TextBox)(gvMain.Rows[e.EditIndex].Cells[1].Control[1])).Text; And result is 1; Please tell me why Now the project on which i work it use net.3.5 can you explain me if there is some changes and why if i catch the text box the value is old one not the value which i already type on it. Thanks in advance.
when i want to read something good just seat and type it
-
Hello friends First at all happy new year of all of you.All the best in next one.)) Cloud you help me please.I will describe the problem.It seens stupid but i did not use VS from 1 year and just now start it again. So we have GridView inside of it are templates for example label and text box for edit mode which are connected with some db.So the problem is appear when i try to update that data exactly in updating event.After pressing update button in quick watch i see that it is give me old value not what i had change ready!!!For example in label value is 1 and when you press button edit in text box is 1 too but my goal is to be changed to 2 so in text box value is changed to 2 but after pressing of bot ton the value which is extract is 1???Pleas cloud you tell me some body why.Unfortunately the at the moment i am not in-front of my pc but let try the code. string name; name=((TextBox)(gvMain.Rows[e.EditIndex].Cells[1].Control[1])).Text; And result is 1; Please tell me why Now the project on which i work it use net.3.5 can you explain me if there is some changes and why if i catch the text box the value is old one not the value which i already type on it. Thanks in advance.
when i want to read something good just seat and type it