Validating Boundcolumns in datagrid

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

  1. #1

    Default Validating Boundcolumns in datagrid

    Hi,
    I have a Datagrid with boundcolumns. I need to validate the textbox when
    the user clicks the update link.How can i do it. Also i need to set the
    maxlength of the textbox (boundcolumn). Is it possible if so how it can
    achieved.
    Thx,
    kalai


    kalaiselvan Guest

  2. Similar Questions and Discussions

    1. Validating in a DataGrid
      I use a TextInput ItemEditor in a Datagrid. How do I make sure the user only inputs numeric input? I can use restrict to get only integers, but what...
    2. Postbacks removing DataGrid which has BoundColumns created in code.
      I'm having an issue with my DataGrid being removed from the page on postbacks. All of the columns are added programatically as the application...
    3. validating a custom control in a datagrid
      hi, i have a datagrid which display custom controls when user clicks edit, changing data. I am using customvalidator to validate this control. I...
    4. DataGrid - Unable to update with dynamic BoundColumns
      Hi everybody, A very strange problem with WebControls : A Datagrid in an ASp.net application; Bound with a dataset through ado.net; The...
    5. Once again: validating the datagrid
      Hi, After long search of the internet, I couldn't find any solution on validating a datagrid. I have textboxes and validators (required field)...
  3. #2

    Default Re: Validating Boundcolumns in datagrid

    kalaiselvan wrote:
    > Hi,
    > I have a Datagrid with boundcolumns. I need to validate the textbox
    > when the user clicks the update link.How can i do it. Also i need to
    > set the maxlength of the textbox (boundcolumn). Is it possible if so
    > how it can achieved.
    > Thx,
    > kalai
    Change the BoundColumn into a TemplateColumn (Web Matrix and
    Visual Studio.NET can do it for you).
    Then you have full control and you can add a Validator control.

    --

    Jos


    Jos 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