Question : How to update the database using a datagrid event

I would like to update the database value for each row using a call to a event by a datagrid function that would update the value in the database for ("Right" />) for each of the datagrid rows.

    CellPadding="4" CellSpacing="0" AllowPaging="False" AllowSorting="False" AutoGenerateColumns="False"
    ShowHeader="True" ShowFooter="True" HeaderStyle-CssClass="SubHead" ItemStyle-CssClass="Normal"
    FooterStyle-CssClass="SubHead" FooterStyle-HorizontalAlign="Right"  >
   
                    Visible="false" ReadOnly="True" />
       
       
                    ReadOnly="True" />
                    DataFormatString="{0:$#,##0.00}" ItemStyle-HorizontalAlign="Right" FooterText="" />
                    Text="[Remove]" />
   

Answer : How to update the database using a datagrid event

putin ur query in the following  

 Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating
'ur queries to update the database
    End Sub
Random Solutions  
 
programming4us programming4us