DataGrid Buttons causing validation

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default DataGrid Buttons causing validation

    the Edit, Update, Cancel, and Delete buttons in my datagrid are causing
    validation elsewhere on the page. I want to specify that these buttons
    should not cause validation but they have no design time property of
    causevalidation.

    How can I keep them from causing validation?

    Thanks,
    T


    Tina Guest

  2. Similar Questions and Discussions

    1. Checkbox validation in datagrid
      I have a datagrid that has 3 checkboxes (checkbox1, checkbox2 and checkbox3). Before i update a record to the database i want to run a validation...
    2. fully editable datagrid causing crash
      i need to display up to possibly a few hundred rows from a database table in a datagrid that is fully editable. there need to be 5 editable...
    3. Dynamically Add Validation to Datagrid
      I have a dgrid with some edit boxes for entry which i need to validate. When i input the validation within the bound columns in the .aspx page it...
    4. DataView.Sort causing duplicate entries in a DataGrid control
      I have a custom object that exposes data through one of its properties that is of type DataTable. I then use the resultant DataTable from the...
    5. Datagrid validation
      How to implement the following two validations in the datagrid. 1. For one of the column user can edit only numeric values(0 to 9). 2. The edit box...
  3. #2

    Default Re: DataGrid Buttons causing validation

    You can put in your own ItemTemplate column and inside there put <asp:LinkButton
    CausesValidation=false CommandName="Update" .... />. The special names for
    CommandName are "Update", "Delete" and "Cancel" as you might expect.

    -Brock
    DevelopMentor
    [url]http://staff.develop.com/ballen[/url]
    > the Edit, Update, Cancel, and Delete buttons in my datagrid are
    > causing validation elsewhere on the page. I want to specify that
    > these buttons should not cause validation but they have no design time
    > property of causevalidation.
    >
    > How can I keep them from causing validation?
    >
    > Thanks,
    > T

    Brock Allen Guest

  4. #3

    Default Re: DataGrid Buttons causing validation

    my buttons are "buttons" not linkbuttons. Are you saying to just create a
    new column in the grid, make it a non visible template column and put in
    your string? what does the .... mean?
    T
    "Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
    news:b8743b114ca108c7ba5822166368@msnews.microsoft .com...
    > You can put in your own ItemTemplate column and inside there put
    > <asp:LinkButton CausesValidation=false CommandName="Update" .... />. The
    > special names for CommandName are "Update", "Delete" and "Cancel" as you
    > might expect.
    >
    > -Brock
    > DevelopMentor
    > [url]http://staff.develop.com/ballen[/url]
    >
    >> the Edit, Update, Cancel, and Delete buttons in my datagrid are
    >> causing validation elsewhere on the page. I want to specify that
    >> these buttons should not cause validation but they have no design time
    >> property of causevalidation.
    >>
    >> How can I keep them from causing validation?
    >>
    >> Thanks,
    >> T
    >
    >

    Tina Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139