Gridview Bug?

Discussion in 'ASP .Net' started by Tim Payne, Jun 4, 2008.

  1. Tim Payne

    Tim Payne Guest

    Here's an odd one. If I have a gridview that only has one row in it, and
    there is a button on the row (be it a buttoncolumn or in a templatecolumn),
    clicking the button adds an extra row to the gridview, but without any data
    bound to it. Two or more rows and its fine, it only happens when there's one
    row in the gridview.

    Has anyone else come accross this? I can't find any examples of anyone else
    who's come accross this one.

    Regards,

    Tim.
     
    Tim Payne, Jun 4, 2008
    #1
    1. Advertising

  2. Tim Payne

    Tim Payne Guest

    In fact it happens if you click any button, anywhere on the page that
    doesn't rebind the datagrid.

    Regards,

    Tim.
     
    Tim Payne, Jun 4, 2008
    #2
    1. Advertising

  3. Tim Payne

    David Wier Guest

    It doesn't happen normally - - - Have you tried stepping through the code,
    after any button click, to see where and how this happens?

    David Wier
    http://aspnet101.com
    http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
    bloated markup


    "Tim Payne" <> wrote in message
    news:%...
    > In fact it happens if you click any button, anywhere on the page that
    > doesn't rebind the datagrid.
    >
    > Regards,
    >
    > Tim.
    >
    >
     
    David Wier, Jun 4, 2008
    #3
  4. Tim Payne

    Lars Guest

    Hi

    I had the same error when I found out that the button I used was "Add" which
    added a control to the grid. Could the problem be that simple to solve?

    "David Wier" <> skrev i meddelandet
    news:...
    > It doesn't happen normally - - - Have you tried stepping through the code,
    > after any button click, to see where and how this happens?
    >
    > David Wier
    > http://aspnet101.com
    > http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with
    > no bloated markup
    >
    >
    > "Tim Payne" <> wrote in message
    > news:%...
    >> In fact it happens if you click any button, anywhere on the page that
    >> doesn't rebind the datagrid.
    >>
    >> Regards,
    >>
    >> Tim.
    >>
    >>

    >
    >
     
    Lars, Jun 5, 2008
    #4
    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. John

    Re: BUG? OR NOT A BUG?

    John, Sep 20, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    555
  2. RedEye
    Replies:
    2
    Views:
    588
    Jason Kester
    Dec 13, 2005
  3. Michel Joly de Lotbiniere

    Bug Parade Bug 4953793

    Michel Joly de Lotbiniere, Nov 30, 2003, in forum: Java
    Replies:
    4
    Views:
    649
    Michel
    Dec 2, 2003
  4. =?Utf-8?B?bWdvbnphbGVzMw==?=

    GridView Hierarchical View - Gridview in Gridview

    =?Utf-8?B?bWdvbnphbGVzMw==?=, May 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    17,982
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    May 9, 2006
  5. DarkSpy
    Replies:
    4
    Views:
    893
    tom_usenet
    Jun 27, 2003
Loading...

Share This Page