Gridview - Row Update Event Not Firing When grid has invisible col

Discussion in 'ASP .Net Datagrid Control' started by RickM, Oct 20, 2005.

  1. RickM

    RickM Guest

    ..net 2.0 Visual Studio 2005 beta 2 Gridview

    I am hiding and displaying columns in a gridview based upon user's
    selection. The Row Updating event is not firing when I have invisible
    TemplateField Columns. If I change all columns to Visible, the event fires.
    If I make one column invisible, it does not fire. Is this by design? Is
    there a work around?

    --
    RickM
     
    RickM, Oct 20, 2005
    #1
    1. Advertising

  2. You probably need to add the column to the datakeynames attribute.
    invisible columns are not stored in viewstate (unless they are in
    datakeynames) so that is probably why it is not firing.

    On Thu, 20 Oct 2005 11:28:10 -0700, "RickM"
    <> wrote:

    >.net 2.0 Visual Studio 2005 beta 2 Gridview
    >
    >I am hiding and displaying columns in a gridview based upon user's
    >selection. The Row Updating event is not firing when I have invisible
    >TemplateField Columns. If I change all columns to Visible, the event fires.
    >If I make one column invisible, it does not fire. Is this by design? Is
    >there a work around?

    Peter Kellner
    http://peterkellner.net
     
    Peter Kellner, Apr 10, 2006
    #2
    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?QXNzYW5LaGFuIElzbWFpbA==?=

    How to transfer a value from an Invisible Grid to an visible Grid

    =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?=, Oct 13, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    483
    =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?=
    Oct 17, 2005
  2. Replies:
    5
    Views:
    696
  3. Ganesh
    Replies:
    0
    Views:
    680
    Ganesh
    Jun 29, 2007
  4. Marcus

    Detailsview or Gridview update event not firing

    Marcus, Jun 20, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    213
    Marcus
    Jun 20, 2006
  5. Replies:
    8
    Views:
    237
    Eric Sosman
    Apr 20, 2013
Loading...

Share This Page