You must Sign In to post a response.
  • Category: JQuery

    DropDownList Validation not working inside Gridview

    I have a dropdownlist inside a gridview,the drop list should populate from database and default value should be SELECT.

    when i Click Save button it should check all the dropdownlist values. If any one is still SELECT it should prompt error select any values.
    When i normaly check without inside gridview it works fine and not inside gridview.

    I have attached my codings below.

    Help in this regard.

  • #768128
    Hi Syed,

    What I understand is, without grid value it is prompting error message and with the grid data value even it was in Select it is not working? Because I don't find the attachment of the coding.

    I feel like when datagrid is loaded. It is taking the first value of the loaded grid.
    we can perform two ways to find this.

    #Pass the Select string along with the Datagrid values I mean pass it from the Backend instead of hardcoding in front end.

    #To understand what is happening give a alert message with the values of that text box.. check whether you are really get the "Select" string when the data grid is loaded.


  • #768156
    hi Syed,

    are you using Required Field Validator or something else ...? .

    then if you add your query it would be useful to us for give you much better answer

    Prayer through, Impossible becomes HimPossible

Sign In to post your comments