Basic use of DataView in Ado.Net
Explain the basic use of DataView?
1 Answer
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
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Nov 2, 2012, 3:19 AM EDT
DataView dv1 = ds.Tables[0].DefaultView;//CREATE DATA VIEW
dv1.Sort = "Title"; //SORT ROWS
dv1.RowFilter = "Title like a%"; // FILTER ROWS
DataRowView[] drv = dv1.FindRows("my movie"); //FIND ROWS WHICH TITLE