c# - How to add text box template to auto generate grid view (ASP.NET) and copy few columns from grid view & save them to another column -
this front end grid view
<asp:gridview id="gridview1" runat="server"> //this auto generated grid view.. <columns> <asp:templatefield headertext="remarks"> <itemtemplate> <asp:textbox id="remarks" runat="server" text=""></asp:textbox> //this text box need copy columns , save in table in sql server , need put column last column coming first </itemtemplate> </asp:templatefield> </columns> this end. main doubt how copy columns out column numbers auto generated grid
try { con.open(); gridview1.emptydatatext = "no records found"; gridview1.datasource = cmd.executereader(); gridview1.databind(); //how can solve this? how set column in last in auto generate columns } catch (exception ex) { throw ex; //message } { con.close(); con.dispose(); } }
Comments
Post a Comment