Scenario: You have a DataTable containing sales data for a year. You need to create a DataView that displays only the sales records for a specific region. Which property of the DataView would you use to achieve this?
- AllowNew
- RowFilter
- RowStateFilter
- Sort
The correct option is "RowFilter". This property allows you to specify a filter expression to restrict which rows are viewed in the DataView. By setting the RowFilter property to a condition that filters records based on the specific region, you can achieve the desired outcome.
Loading...
Related Quiz
- When should you use a stored procedure as a command object in ADO.NET?
- How can you execute a stored procedure in ADO.NET?
- Which ADO.NET data reader is used specifically for working with SQL Server databases?
- Scenario: You need to read data from a large SQL Server database. Which ADO.NET data reader should you use, and why?
- Why are stored procedures commonly used in database applications?