How to add datatable filtering Search to a asp.net
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Lakshmanan Sethu SankaranarayanRank #124 · 17.7K reputationPosted Jul 16, 2014, 12:21 AM EDT
check this link
http://stackoverflow.com/questions/3362260/how-to-make-c-sharp-datatable-filter
Pradeep ShetRank #595 · 4K reputationPosted Jul 17, 2014, 9:10 PM EDT
If you want to filter the data in datatable then use
DataTable dt= new DataTable();
DataRow[] dr = dt.Select("condition");
Once you get the collection of DataRow, convert it into DataTable again
dr.CopyToDataTable();
Hope this solves your problem. Mark it answered if you got what I suggested.