Scenario: You want to implement a feature where users can group data by a specific column in the table. Which control would be more suitable for this task, DataGrid or DataGridView, and how would you achieve it?
- DataGrid with AllowGrouping property
- DataGrid with GroupingEnabled property
- DataGridView with AllowGrouping property
- DataGridView with GroupingEnabled property
To implement a feature where users can group data by a specific column in the table, the DataGridView control with the GroupingEnabled property enabled would be more suitable. This property allows users to group data by dragging column headers to the grouping area, providing a convenient way to organize and analyze information. With DataGridView, users can easily create custom groups and expand/collapse them as needed, enhancing the data presentation capabilities of the application.
Loading...
Related Quiz
- What is the purpose of a data provider in ADO.NET?
- You want to retrieve a single value (e.g., the total number of records) from a SELECT statement. Which ADO.NET method would you use for this purpose?
- Explain the concept of data binding expressions in ASP.NET and give an example.
- In ADO.NET, the ___________ property of a command object specifies the maximum amount of time a command can run before being terminated.
- Which ADO.NET provider-specific classes allow you to define parameters differently for different database systems?