i am searching a record in datagrid.if i enter any value it display record not found,if the record is not there.but i enter Apostrophe it is showing error(Cannot perform 'Mod' operation on System.String and System.String)....how to clear this bug.....

Answer

Do string.Replace("'","") before added to database then it will be easy for u or if u want to search also follow the same procedure