<Columns> <asp:BoundField DataField="latitude" HeaderText="Latitude" /> <asp:BoundField DataField="Longitude" HeaderText="Longitude" /> </Columns>
protected void gvAlerts_RowUpdating(object sender, GridViewUpdateEventArgs e) { GridViewRow row = gvAlerts.Rows[e.RowIndex]; string Latitude = ((TextBox)(row.Cells[1].Controls[0])).Text; string Longitude = ((TextBox)(row.Cells[2].Controls[0])).Text; }
if(!IsPostBack)
GridView.DataBind()
if(!IsPostBack) { // Code to bind the GridView. }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)