dynamic add column at certain col

Discussion in 'ASP .Net Datagrid Control' started by Johnny Hu, Oct 23, 2005.

  1. Johnny Hu

    Johnny Hu Guest

    Hi,

    i have written a datagridcolumn class and i can add it into datagrid when
    Page_Load
    but the column is always added to the first column.
    (i want to add it after certain column)

    datagrid1.datasource = getsource(); //return a datatable
    addcolumn(); //call my function to add a column dynamicly
    datagrid.databinding();

    as i traced the code, the datagrid.columns.count is always 0
    in every event of datagrid.

    so, when is the grid been rednered ?
     
    Johnny Hu, Oct 23, 2005
    #1
    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. Andy Eshtry
    Replies:
    0
    Views:
    629
    Andy Eshtry
    Mar 1, 2004
  2. Jiho Han
    Replies:
    1
    Views:
    194
    Victor Garcia Aprea [MVP]
    Jan 30, 2004
  3. JDP@Work

    Help: Sort Date dg col , Add formatted field to a ds?

    JDP@Work, Feb 19, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    116
    JDP@Work
    Feb 19, 2005
  4. Abhishek
    Replies:
    0
    Views:
    157
    Abhishek
    Mar 24, 2006
  5. Replies:
    8
    Views:
    210
    Eric Sosman
    Apr 20, 2013
Loading...

Share This Page