Have you considered using a filter rather than manually iterating the data?
You can set
myDataTable.DefaultView.RowFilter
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