Ravi Vishwakarma is a dedicated Software Developer with a passion for crafting efficient and innovative solutions. With a keen eye for detail and years of experience, he excels in developing robust software systems that meet client needs. His expertise spans across multiple programming languages and technologies, making him a valuable asset in any software development project.
ICSM Computer
12-Feb-2025The
DataViewclass in ADO.NET provides a way to represent a customized view of aDataTable. It allows sorting, filtering, and searching within aDataTablewithout modifying the original data.Namespace:
Key Features of
DataViewRowFilterproperty.Sortproperty.Find()to locate rows.DataTable.DataTabledynamically.Creating a
DataViewSorting in
DataViewFiltering in
DataViewFinding Rows in
DataViewBefore using
Find(), theSortproperty must be set.Adding New Row
When to Use
DataView?DataTable.DataTablefor every filter/sort would be inefficient.GridView, where you want to show a filtered view.