Runtime Datagrids and checkbox selections

Discussion in 'ASP .Net Datagrid Control' started by DJ Dev, Feb 8, 2004.

  1. DJ Dev

    DJ Dev Guest

    Hi,
    I am stuck at a problem for 3 days now. I create runtime datagrids
    depending on the user selections and they may vary from 2-10 depending
    on user selection at runtime. The datagrids are created in a loop at
    runtime and I assign IDs as DG0, DG1...and so on in the loop itself.
    The datagrid has a template column created at runtime with checkboxes.
    They may vary from 3-7 varying from datagrid to datagrid. Once that is
    done and i have been able to do it, the user further selects some
    checkboxes and these values need to be used for further data
    generation. Now my problem is -
    In a normal datagrid (non-runtime), I can check the checkbox selection
    using the ID of the datagrid. But in my case, I dont have a datagrid
    ID until runtime. How can I then write a procedure to see what all
    user selections has been made.
    Please help!!! I am going crazy!
     
    DJ Dev, Feb 8, 2004
    #1
    1. Advertising

  2. DJ Dev

    Corey O'Mara Guest

    I'm not sure I understand your question, but the answer may lie in the
    "ClientID" property, whicih will tell you the client side ID assocaited with
    a server control.

    I may not be understand what you're trying to do.

    --
    Corey O'Mara
    MCSD.NET, MCT

    "DJ Dev" <> wrote in message
    news:...
    > Hi,
    > I am stuck at a problem for 3 days now. I create runtime datagrids
    > depending on the user selections and they may vary from 2-10 depending
    > on user selection at runtime. The datagrids are created in a loop at
    > runtime and I assign IDs as DG0, DG1...and so on in the loop itself.
    > The datagrid has a template column created at runtime with checkboxes.
    > They may vary from 3-7 varying from datagrid to datagrid. Once that is
    > done and i have been able to do it, the user further selects some
    > checkboxes and these values need to be used for further data
    > generation. Now my problem is -
    > In a normal datagrid (non-runtime), I can check the checkbox selection
    > using the ID of the datagrid. But in my case, I dont have a datagrid
    > ID until runtime. How can I then write a procedure to see what all
    > user selections has been made.
    > Please help!!! I am going crazy!
     
    Corey O'Mara, Feb 10, 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. DJ Dev
    Replies:
    1
    Views:
    425
    Corey O'Mara
    Feb 10, 2004
  2. Laser Lips
    Replies:
    3
    Views:
    2,383
    Jukka K. Korpela
    Feb 23, 2010
  3. Parag Gaikwad
    Replies:
    18
    Views:
    363
    Parag Gaikwad
    Jul 26, 2007
  4. .Net Sports
    Replies:
    4
    Views:
    3,360
    Adrienne Boswell
    Sep 29, 2009
  5. Menelty
    Replies:
    2
    Views:
    160
    Stephen Chalmers
    Jun 11, 2004
Loading...

Share This Page