Adding rows programmatically to GridView

Discussion in 'ASP .Net Datagrid Control' started by Matt Adamson, Mar 15, 2007.

  1. Matt Adamson

    Matt Adamson Guest

    Guys,

    Is there any way to add a row programmatically?

    What workarounds would you recommend if this isn't possible? This seems a
    big limitatiion of the control as the Win Forms 2.0 DataGridView control
    seems to support this feature.

    Cheers

    Matt
    Matt Adamson, Mar 15, 2007
    #1
    1. Advertising

  2. Matt Adamson

    Teemu Keiski Guest

    It is possible. For example my sorting sample uses that.

    http://aspadvice.com/blogs/joteke/archive/2006/02/11/15130.aspx

    Basically just add GridViewRow at rendering time to the location where you
    want ti to be.


    --
    Teemu Keiski
    AspInsider, ASP.NET MVP
    http://blogs.aspadvice.com/joteke
    http://teemukeiski.net


    "Matt Adamson" <> wrote in message
    news:...
    > Guys,
    >
    > Is there any way to add a row programmatically?
    >
    > What workarounds would you recommend if this isn't possible? This seems a
    > big limitatiion of the control as the Win Forms 2.0 DataGridView control
    > seems to support this feature.
    >
    > Cheers
    >
    > Matt
    >
    Teemu Keiski, Apr 9, 2007
    #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. John

    adding totals in gridview rows

    John, Jun 9, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    589
  2. =?Utf-8?B?Vk1J?=

    Adding rows to gridview

    =?Utf-8?B?Vk1J?=, Aug 22, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    66,088
    shaileshcdac
    Mar 6, 2007
  3. Loading name...

    adding rows in GridView

    Loading name..., Aug 25, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    4,447
    John Timney \(MVP\)
    Aug 25, 2006
  4. VijayRama
    Replies:
    2
    Views:
    2,281
    Gregory A. Beamer
    Oct 12, 2009
  5. JB
    Replies:
    1
    Views:
    741
    Mr. Arnold
    Jun 15, 2010
Loading...

Share This Page