Adding Columns to Datagrid Dynamically

Discussion in 'ASP .Net Datagrid Control' started by Sal, Feb 26, 2004.

  1. Sal

    Sal Guest

    Hello Everyone,
    I have a webpage with three link buttons and a datagrid.
    I would like to populate the same datagrid with different datasources by
    clicking these link buttons, which means I need to be able to dynamically
    add or delete columns to this datagrid through code.
    Can someone help me with this?
    Is this a viable solution?
    Any help will be greatly appreciated...
    Thanks,
    Sal
     
    Sal, Feb 26, 2004
    #1
    1. Advertising

  2. Sal

    TJS Guest

    based upon the button clicked, change the datasource before binding


    "Sal" <> wrote in message
    news:OTpkYOB$...
    > Hello Everyone,
    > I have a webpage with three link buttons and a datagrid.
    > I would like to populate the same datagrid with different datasources by
    > clicking these link buttons, which means I need to be able to dynamically
    > add or delete columns to this datagrid through code.
    > Can someone help me with this?
    > Is this a viable solution?
    > Any help will be greatly appreciated...
    > Thanks,
    > Sal
    >
    >
     
    TJS, Feb 28, 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. keithb
    Replies:
    0
    Views:
    2,228
    keithb
    May 4, 2006
  2. herman404
    Replies:
    1
    Views:
    455
    =?Utf-8?B?c2xlbWVu?=
    Jun 20, 2006
  3. rob thomson
    Replies:
    0
    Views:
    264
    rob thomson
    Sep 4, 2003
  4. Ian Oldbury

    Dynamically adding DataGrid columns

    Ian Oldbury, Feb 8, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    148
    Alvin Bruney [MVP]
    Feb 8, 2005
  5. ton
    Replies:
    2
    Views:
    207
    Alvin Bruney [MVP]
    Feb 11, 2004
Loading...

Share This Page