Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
C#
dataGridView.DataSource = await Task.Run(() => _dataHelper.Search(searchStore, searchItem));


What I have tried:

i want to search in database have this error No overload for method 'method' takes '2' arguments
Posted
Updated 29-Feb-24 5:11am
v2

1 solution

We have no idea what type _dataHelper is, or how many overloads there are of its Search method.
But the error message is clear: there isn't an overload that takes exactly two parameters. Check the definition of the function, and see what parameters it does expect.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900