ASP.NET Datagrid columns question.

Discussion in 'ASP .Net Datagrid Control' started by jjeffers1@hotmail.com, May 25, 2006.

  1. Guest

    Sorry for crossposting but I'm not sure which group is more active.

    I am having problems getting a reference to a column in an
    auto-generated asp.net datagid in VS.Net 2003. I remember reading a
    while back that if the columns are autogenerated then a datagrid cannot
    get a column reference...i.e. the autogenerated columns are not added
    to the columns collection.

    Does anyone know a workaround? The reason I have to autogenerate the
    columns is because depending on some user choices the datasources for
    the datagrid can come from vastly different schemas.

    Thanks.
     
    , May 25, 2006
    #1
    1. Advertising

  2. Guest

    wrote:
    > Sorry for crossposting but I'm not sure which group is more active.
    >
    > I am having problems getting a reference to a column in an
    > auto-generated asp.net datagid in VS.Net 2003. I remember reading a
    > while back that if the columns are autogenerated then a datagrid cannot
    > get a column reference...i.e. the autogenerated columns are not added
    > to the columns collection.
    >
    > Does anyone know a workaround? The reason I have to autogenerate the
    > columns is because depending on some user choices the datasources for
    > the datagrid can come from vastly different schemas.
    >
    > Thanks.
     
    , May 29, 2006
    #2
    1. Advertising

  3. Guest

    please chk the solution provided in the following link
    http://www.dotnet247.com/247reference/msgs/55/278148.aspx

    Happy Coding....






    wrote:
    > Sorry for crossposting but I'm not sure which group is more active.
    >
    > I am having problems getting a reference to a column in an
    > auto-generated asp.net datagid in VS.Net 2003. I remember reading a
    > while back that if the columns are autogenerated then a datagrid cannot
    > get a column reference...i.e. the autogenerated columns are not added
    > to the columns collection.
    >
    > Does anyone know a workaround? The reason I have to autogenerate the
    > columns is because depending on some user choices the datasources for
    > the datagrid can come from vastly different schemas.
    >
    > Thanks.
     
    , May 29, 2006
    #3
    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. David Laub
    Replies:
    0
    Views:
    514
    David Laub
    Aug 3, 2004
  2. helpful sql
    Replies:
    0
    Views:
    824
    helpful sql
    May 19, 2005
  3. rob thomson
    Replies:
    0
    Views:
    269
    rob thomson
    Sep 4, 2003
  4. ton
    Replies:
    2
    Views:
    207
    Alvin Bruney [MVP]
    Feb 11, 2004
  5. ASP.NET Datagrid columns question.

    , May 25, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    140
Loading...

Share This Page