Tuesday, August 26, 2014

How to change statment to accept = and like in same time when i make filter

Have you considered using a filter rather than manually iterating the data?


You can set


myDataTable.DefaultView.RowFilter

http://ift.tt/1wwdkyY



dt.RowFilter = string.Concat("CONVERT(", myColumn,",System.String) LIKE '%", Textbox.Text, "%'");





Hope that helps

Please don't forget to up vote answers you like or which help you and mark one(s) which answer your question.


No comments:

Post a Comment