c# - Search DataGridView using search query and like operator -


i want search name in datagridview using search query , like operator.

 public static dataset searchitems(string key)     {         string cmd = @"select lt.ledgerid,la.ledgername ledgertranscationinfo lt                                   join ledgeraccreation la on lt.ledgerid = la.ledgerid;                                                             la.ledgername concat('"                                 + key.trim() + "','%') ;";         dataset ds = mysql_helper.getdataset(commandtype.text, cmd, "ledgeraccreation");         return ds;     } 

it show error while searching text. please give me proper solution text search.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -