GridView Edit Not Working

Discussion in 'ASP .Net Datagrid Control' started by Saubz, Sep 25, 2006.

  1. Saubz

    Saubz Guest

    Hello. I have a problem with my GridView not updating. I have a GridView
    showing 4 fields from a database table. If all 4 of the fields have values
    showing in the GridView, then using the automatically generated Edit button
    on the GridView works just fine - the database updates. But if one of the
    fields in the GridView is empty(representing a NULL value in the database)
    then the Edit button does not Update the changes in the database - the page
    posts back with the same data. I have the ConvertEmptyStringToNull="true"
    property set in the <UpdateParameters> in my SqlDataSource. Is there
    something else I am missing? Why won't this work?
     
    Saubz, Sep 25, 2006
    #1
    1. Advertisements

  2. Hi,

    I've posted a reply to your post "GridView Update Not Working" in
    "microsoft.public.dotnet.framework.aspnet.webcontrols". Please reply there.
    Thank you.

    Regards,
    Walter Wang (, remove 'online.')
    Microsoft Online Community Support

    ==================================================
    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.
    ==================================================

    This posting is provided "AS IS" with no warranties, and confers no rights.
     
    Walter Wang [MSFT], Sep 26, 2006
    #2
    1. Advertisements

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. tshad

    Datalist edit items not working

    tshad, Jan 3, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    2,673
    John Saunders
    Jan 3, 2005
  2. Nalaka

    Datagrid "edit" image not working

    Nalaka, Jul 28, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    3,213
    Steven Cheng[MSFT]
    Jul 29, 2005
  3. =?Utf-8?B?a2Vu?=
    Replies:
    1
    Views:
    10,642
    Wiktor Zychla [C# MVP]
    Jan 23, 2006
  4. cindy

    datagrid checkbox list edit item not working

    cindy, Oct 18, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    391
    Steven Cheng[MSFT]
    Oct 19, 2005
  5. Burak Gunay

    Edit Button not working properly.. help please

    Burak Gunay, Jan 11, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    187
    Yogesh
    Mar 1, 2006
  6. Jaime Stuardo

    GridView control enters edit mode when I click Edit link twice

    Jaime Stuardo, Apr 7, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    639
    Jaime Stuardo
    Apr 7, 2006
  7. Kristen

    Conditional Gridview Edit Column Not Working

    Kristen, Aug 31, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    379
    Kristen
    Aug 31, 2006
  8. David Thielen

    FormView.ChangeMode(FormViewMode.Edit) not working

    David Thielen, Mar 2, 2007, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    1,051
    David Thielen
    Mar 4, 2007
Loading...