TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rizwan Ahmed
NA
80
13.2k
Error In Search Of Mobile No From Data Gird
Nov 20 2018 12:17 PM
I want to search mobile no from Grid with selection of ComboBox. Search bar search names but when i code for mobile and cnic this error appeared, error and code as under; (using C# with Access2016 database)
System.Data.EvaluateException: 'Cannot perform 'Like' operation on System.Double and System.String.'
private
void
txtSearchBar_TextChanged(
object
sender, EventArgs e)
{
if
(comboxSearch.Text ==
"Mobile No"
)
{
DataView dv = dt.DefaultView;
dv.RowFilter =
"MobileNo LIKE '%"
+ txtSrchBar.Text.ToString() +
"%' "
;
}
}
Reply
Answers (
9
)
How to work with excel file in C#
When should we use Ienumerable over List in C#?