Skip to content

Commit

Permalink
Update rule.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagov8 authored Mar 25, 2024
1 parent 30ace3e commit 73b33f1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions rules/always-use-gridview-instead-of-listbox/rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ guid: 62fdd9ea-cbec-4e93-8547-1da7c2ec13fa
---
Always choose a GridView (over a ListBox) because it can have:

1. Multiple columns.
2. Checkboxes in the header of the control, which enables users to easily check or uncheck all items.
3. Add sub-controls added such as buttons, links, charts, and even customized controls to the Gridview. This means you get unlimited flexibility with the GridView.

<!--endintro-->

1. Multiple columns
2. Checkboxes in the header of the control, which enables users to easily check or uncheck all items
3. Add sub-controls added such as buttons, links, charts, and even customized controls to the Gridview. This means you get unlimited flexibility with the GridView

::: bad
![Figure: Bad example - No header rows and no checkbox to check or uncheck all items. None of this can be done with the ListView.](datagridviewbad.png)
![Figure: Bad example - No header rows and no checkbox to check or uncheck all items. None of this can be done with the ListView](datagridviewbad.png)
:::

::: good
![Figure: Good example - A header row and a checkbox to control all items, and multiple columns give users a richer experience. This can all be done using a GridView.](datagridviewgood.png)
![Figure: Good example - A header row and a checkbox to control all items, and multiple columns give users a richer experience. This can all be done using a GridView](datagridviewgood.png)
:::

0 comments on commit 73b33f1

Please sign in to comment.