CheckBox in a datagrid without postback

Discussion in 'ASP .Net Datagrid Control' started by Carmen, Aug 26, 2004.

  1. Carmen

    Carmen Guest

    I have a datagrid with several records. The datagrid has several pages, one
    every 20 records.
    The first datagrid column is a template with a checkbox. This checkbox is
    used by the user to select the records he wants to be printed. I have a
    boolean field in a dataset to say if the records is selected or not. This
    dataset is used in a Crystal Reports report to print the records selected.
    And this is my problem:
    Every time the user checks a checkbox, a postback is made. I want to do a
    postback only if the user push the print button or a button to go to another
    page of the datagrid (other 20 records). I have tried to put autopostback =
    false, but then, the property checked is false for all the records except
    the first one.
    What can I do?
    Thanks in advance.
    Carmen, Aug 26, 2004
    #1
    1. Advertising

  2. Carmen

    Carmen Guest

    I have already solved my problem.
    Thanks


    "Carmen" <> escribió en el mensaje
    news:...
    > I have a datagrid with several records. The datagrid has several pages,

    one
    > every 20 records.
    > The first datagrid column is a template with a checkbox. This checkbox is
    > used by the user to select the records he wants to be printed. I have a
    > boolean field in a dataset to say if the records is selected or not. This
    > dataset is used in a Crystal Reports report to print the records selected.
    > And this is my problem:
    > Every time the user checks a checkbox, a postback is made. I want to do a
    > postback only if the user push the print button or a button to go to

    another
    > page of the datagrid (other 20 records). I have tried to put autopostback

    =
    > false, but then, the property checked is false for all the records except
    > the first one.
    > What can I do?
    > Thanks in advance.
    >
    >
    Carmen, Aug 26, 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. Psych971
    Replies:
    5
    Views:
    4,604
    bruce barker
    Dec 17, 2004
  2. UJ
    Replies:
    4
    Views:
    46,491
    pamam
    Apr 24, 2009
  3. =?Utf-8?B?RG90TmV0RGV2?=

    DataGrid and embeded Checkbox..How to find if checkbox clicked

    =?Utf-8?B?RG90TmV0RGV2?=, Oct 6, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    799
    David Wier
    Oct 6, 2006
  4. Fabio Mastria
    Replies:
    5
    Views:
    4,335
    TechMCAD13
    Jan 30, 2008
  5. Joey Pang
    Replies:
    4
    Views:
    504
    Joey Pang
    Jun 13, 2005
Loading...

Share This Page