Q: Default columns appear at runtime

Discussion in 'ASP .Net Datagrid Control' started by David Carr, Jan 15, 2004.

  1. David Carr

    David Carr Guest

    Hi all,

    I dropped the DataGrid control onto my ASPX page, and it automatically
    appeared with the 3 default columns having headings of {Column0, Column1,
    Column2}. I then added my own columns using the property builder, however
    these 3 default columns still appeared in the Design view of the ASPX page
    although they do not appear in the Property Builder (nor when looking
    directly at the HTML). Lastly, they also do strange things to the data at
    runtime when it is bound to a DataTable.

    Any ideas on how to get rid of these default 3 columns?

    Cheers,
    David
    David Carr, Jan 15, 2004
    #1
    1. Advertising

  2. David Carr

    David Carr Guest

    Re: Default columns appear at runtime - solution

    Posted here to help all, I solved the problem.

    In the Property Builder and Columns set of options, uncheck the 'Create
    columns automatically at run time' checkbox.

    "David Carr" <> wrote in message
    news:...
    > Hi all,
    >
    > I dropped the DataGrid control onto my ASPX page, and it automatically
    > appeared with the 3 default columns having headings of {Column0, Column1,
    > Column2}. I then added my own columns using the property builder, however
    > these 3 default columns still appeared in the Design view of the ASPX page
    > although they do not appear in the Property Builder (nor when looking
    > directly at the HTML). Lastly, they also do strange things to the data at
    > runtime when it is bound to a DataTable.
    >
    > Any ideas on how to get rid of these default 3 columns?
    >
    > Cheers,
    > David
    >
    >
    David Carr, Jan 15, 2004
    #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. helpful sql
    Replies:
    0
    Views:
    791
    helpful sql
    May 19, 2005
  2. Replies:
    5
    Views:
    574
  3. Replies:
    4
    Views:
    921
  4. Jonathan Wood
    Replies:
    2
    Views:
    4,242
    Jonathan Wood
    Feb 8, 2008
  5. chandan
    Replies:
    0
    Views:
    793
    chandan
    Sep 30, 2008
Loading...

Share This Page