Ajith kp

Ajith kp

  • 1.5k
  • 145
  • 32.8k

Datagridview Autocomplete not working

Jan 21 2014 3:38 AM
hi Sir.. i am using datagridview using textbox for autocomplete. first row is working properly and geting list values. but next row what i get in the first row that is listing. its not work based on my search value, am using jquery for autocomplete. can you please help me to return the correct row cell value... 

  $("[id*=txtItemName]").autocomplete(
                    {                      
           
                        source: function (request, response) {                          
                            $.ajax({
                                type: "POST",
                                contentType: "application/json; charset=utf-8",
                                url: "AutoCompleteService.asmx/GetAutoCompleteData",
                                data: "{'objItemName':'" + $("[id*=txtItemName]").val() + "'}",
                                dataType: "json",
                                success: function (data) {
                                    response(data.d);
                                },
                                error: function (result) {
                                    alert("Error");
                                }


                            });                          


                        }
                    });