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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *