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
albert albert
NA
524
0
How to select more colums with LIke
Sep 3 2013 3:40 AM
HI everybody,
I have this:
[code]
public void rep_bind()
{
DataClasses1DataContext context = new DataClasses1DataContext(_connectionString);
var selectTrip = from t in context.TripElements
where SqlMethods.Like(textBox1.Text.Trim(), "%"+t.TripElementCode+"%" /*+ "%"+t.TripElementName + "%" +*/ + t.TripElementName.Contains(t.TripElementName))
// where SqlMethods.Like(textBox1.Text.Trim(), "%" + t.EMP_ID)
select new
{
Trip_ID = t.TripElementID,
Trip_Code = t.TripElementCode,
trip_ElementName = t.TripElementName
};
dataGridView1.DataSource = selectTrip;
textBox1.Text = "";
}
[/code]
But that doenst work.
THX for helping
Reply
Answers (
6
)
I have some problem in editing the gridview data
How to bind my picture on image