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
Emad Ahmed
NA
62
3k
Filter int32 filed in RadGridView according to textbox
Jan 18 2017 2:30 PM
I have a main form frmInnovation that contains a textbox txtInnovationID, and I have a Telerik RadGridView on the form TableSituations with a column InnovationNameID of type int32.
What I want to do is to filter the RadGridView on form load according to the txtInnovationID.
TableSituation.InnovationNameID = txtInnovationID
I use this code to filter strings, but how to modify to filter int32.
BindingSource bs =
new
BindingSource();
bs.DataSource = TableSituations.DataSource;
bs.Filter = TableSituations.Columns[2].HeaderText.ToString() +
" LIKE '%"
+ txtInnovationID.Text +
"%'"
;
TableSituations.DataSource = bs.DataSource;
I need also to change the code from "LIKE" to "Equals".
Reply
Answers (
2
)
How to open third party exe file into windows form
how to delete data from ms access