code for data editing in grid view.
-
Hi fellows. This is the third time i am posting this message.I have a very simple problem. I just want to know how can we get new values from the datagrid after we have updated them in rowupdating even. i am using vs2005 with c#. kindly post a sample if possible. Ahsan Ullah
-
Hi fellows. This is the third time i am posting this message.I have a very simple problem. I just want to know how can we get new values from the datagrid after we have updated them in rowupdating even. i am using vs2005 with c#. kindly post a sample if possible. Ahsan Ullah
-
Hi, In 1.1 bind the datagrid again with the connection and querystring.You will get the datagrid with updated values. in case of 2.0 I don't know the procedure.But try ate same above procedure Bye.
-
if i databind it again than it will be bound with the old values again.i want to bind it with new values. and for that purpose i want to save new values in datasource. i am unable to get new values. Ahsan Ullah
-
There might some problem in updating the data.I mean your updation may no be taking place successully.
-
i am able to edit the data.but i want to save it as well.and for saving i have to get it.and i dont know how to get that edited data from that cell.
-
In 1.1 the code is dim str as string = e.item.cell[0].text. dim str1 as string = e.item.cell[1].control[0] dim str2 as string = e.item.cell[2].control[0] Now apply the query update table name set abc = str1 , abc1 = str2 where abc2 = str.
-
Hi fellows. This is the third time i am posting this message.I have a very simple problem. I just want to know how can we get new values from the datagrid after we have updated them in rowupdating even. i am using vs2005 with c#. kindly post a sample if possible. Ahsan Ullah
-
Hi, In 1.1 bind the datagrid again with the connection and querystring.You will get the datagrid with updated values. in case of 2.0 I don't know the procedure.But try ate same above procedure Bye.
i think you are binding the datagrid in not postback block ex:- if(!IsPostBack) { bindgrid(); } if yes just remove that condition