Zaphirebotpro
New Member
I have the following grid set up.<BR><BR> <ASP
ataGrid id="grdIndustry" runat="server"<BR> BorderColor="black"<BR> BorderWidth="1"<BR> GridLines="Both"<BR> CellPadding="3"<BR> CellSpacing="0"<BR> Font-Name="Verdana"<BR> Font-Size="8pt"<BR> HeaderStyle-ForeColor="#ffcc00"<BR> HeaderStyle-Font-Size="8pt"<BR> HeaderStyle-Font-Weight="bold"<BR> HeaderStyle-BackColor="#003366"<BR> AlternatingItemStyle-BackColor="#99ccee"<BR> OnEditCommand="grdIndustry_Edit"<BR> OnCancelCommand="grdIndustry_Cancel"<BR> OnUpdateCommand="grdIndustry_Update"<BR> DataKeyField="id"<BR> OnDeleteCommand="grdIndustry_Delete"<BR> AutoGenerateColumns="false"><BR> <Columns><BR> <asp:BoundColumn HeaderText="ID" SortExpression="ID" ReadOnly="True" DataField="ID" ItemStyle-Wrap="false"/><BR> <asp:BoundColumn HeaderText="Industry" DataField="txt"/><BR> <asp:BoundColumn HeaderText="Active" DataField="active"/><BR> <asp:EditCommandColumn EditText="Edit" CancelText="Cancel" UpdateText="Update" ItemStyle-Wrap="false"/><BR> <asp:ButtonColumn Text="Delete" CommandName="Delete"/><BR> </Columns><BR> </asp
ataGrid><BR><BR>When I edit the grid, and select the update button, the contents of the columns is the same as it was prior to me changing the grid, not the new values.<BR><BR>The display loop inside the _Update sub is<BR><BR> Dim NumCols As Integer = E.Item.Cells.Count<BR> Dim I As Integer<BR> For I=1 To NumCols-3 'skip first, second and last column<BR> Dim CurrentTextBox As TextBox<BR> CurrentTextBox = E.Item.Cells(I).Controls(0)<BR>' Dim ColValue As String = CurrentTextBox.Text<BR> Response.write(CurrentTextBox.Text)<BR> Response.write(">>>>")<BR> Next<BR><BR>Any ideas???<BR><BR>MA

