Datagrid Control Not Posting Updated Values

Discussion in 'ASP .Net Web Controls' started by Nik, Oct 29, 2003.

  1. Nik

    Nik Guest

    Sorry, the r.name = theName.Textbox line omitted, but the
    problem remains the same.
    >-----Original Message-----
    >Hi
    >
    >I have a datagrid bound to a datasource with named
    >columns and the edit/cancel/update combo.
    >
    >The grid goes into Edit mode nicely enough, but any
    >changes I input into the textboxes [only one control per
    >cell] are not reflected when running the UpdateCommand

    of
    >the datagrid. The changes are in there though if I
    >reference the request.form(control_name)!
    >
    >UpdateCommand:
    >
    >Private Sub dg_offer_profile_UpdateCommand(ByVal source
    >As Object, ByVal e As
    >System.Web.UI.WebControls.DataGridCommandEventArgs)
    >Handles dg_offer_profile.UpdateCommand
    >
    >Dim key As String = dg_offer_profile.DataKeys
    >(e.Item.ItemIndex).ToString
    >Dim theName As TextBox
    >theName = CType(e.Item.Cells(6).Controls(0), TextBox)
    >Dim r As ds_all_businesses.businessesRow
    >r = ds_all_biz.businesses.FindBybusinessID(key)
    >da_offer_profile.Update(ds_all_biz)
    >dg_offer_profile.EditItemIndex = -1
    >dg_offer_profile.DataBind()
    >End Sub
    >
    >Any help appreciated
    >.
    >
     
    Nik, Oct 29, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TmV3YXNwcw==?=
    Replies:
    0
    Views:
    715
    =?Utf-8?B?TmV3YXNwcw==?=
    Jun 12, 2004
  2. =?Utf-8?B?T3plcg==?=

    DataGrid.UpdateCommand I can't get updated values

    =?Utf-8?B?T3plcg==?=, Jun 12, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    551
    =?Utf-8?B?T3plcg==?=
    Jun 12, 2004
  3. =?Utf-8?B?TWFyeUE=?=

    Retrieve the updated values from datagrid

    =?Utf-8?B?TWFyeUE=?=, Aug 12, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    1,898
    =?Utf-8?B?TWFyeUE=?=
    Aug 13, 2005
  4. Dmitry Korolyov

    Datagrid not updated during delete, but updated during insert and update

    Dmitry Korolyov, Sep 22, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    439
    Dmitry Korolyov
    Sep 22, 2003
  5. Dan

    DataGrid: OnUpdateCommand - getting the updated values

    Dan, Aug 18, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    169
Loading...

Share This Page