AllowPaging and AutoGenerateColumns = false

Discussion in 'ASP .Net Datagrid Control' started by pietaster, Oct 31, 2003.

  1. pietaster

    pietaster Guest

    I have read that in order for paging to work, on a dg that you
    dynamically create the columns, you must create your columns in
    Page_Init. If this is true, how am I to create the columns in the
    Page_Init if the dg does not get created until a button is clicked?

    Please help.

    This has been driving me crazy for weeks. I have 2 apps that I need to
    do this on.
    pietaster, Oct 31, 2003
    #1
    1. Advertising

  2. Hi

    > dynamically create the columns, you must create your columns in
    > Page_Init. If this is true, how am I to create the columns in the
    > Page_Init if the dg does not get created until a button is clicked?


    I dont understand, if you click a button it happens a postback, then happen
    tha Page_init event, then you can create dinacally your column!

    Hi
    Giorgio
    Giorgio Parmeggiani, Oct 31, 2003
    #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?SmFja08=?=

    AllowPaging not working

    =?Utf-8?B?SmFja08=?=, Jun 23, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    3,620
    Patrick Olurotimi Ige
    Jun 24, 2005
  2. =?Utf-8?B?U3RlcGhlbiBIYXRmaWVsZA==?=

    Overriding AllowPaging and PageSize set in skin file

    =?Utf-8?B?U3RlcGhlbiBIYXRmaWVsZA==?=, May 5, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    638
    Onwuka Emeka
    May 5, 2006
  3. Emil O
    Replies:
    0
    Views:
    216
    Emil O
    Sep 2, 2003
  4. pietaster
    Replies:
    1
    Views:
    137
    Bernard O'Flynn
    Oct 28, 2003
  5. Chance Hopkins

    AutoGenerateColumns won't set to false

    Chance Hopkins, Nov 6, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    138
    Alvin Bruney [MVP]
    Nov 6, 2004
Loading...

Share This Page