TStringGrid or TListView for three objects with legal standing?

Go down

TStringGrid or TListView for three objects with legal standing?

· #1

The application lists an egg, a bolt, and a lemon. These are the complete requirements. I chose TStringGrid so each item has its own row.

Pete wants a TListView. Before I rewrite this, I need him to explain which of these objects requires an icon and who authorized the lemon to have subitems.

Re: TStringGrid or TListView for three objects with legal standing?

· #2

The icon is optional. Dignity is not. These are three distinct objects, not three unfortunate cells in a spreadsheet.

I propose a list view with one column. Dan has proposed a second grid column called Future, which is empty. He says that proves it is working.

Pete · thirty years of begin and end "It compiled on my machine."

Re: TStringGrid or TListView for three objects with legal standing?

· #3

All three objects will fit

Control Useful when
TListBox You need a simple list of selectable text entries
TListView with ViewStyle := vsReport Each item has a caption and subitems displayed in columns
TStringGrid You want string cells addressed by column and row, with grid-style interaction

A list view does not require icons. A string grid does not require an empty column held in reserve for civilization. Both can display three items.

For exactly this requirement, a TListBox with three Items is enough. Use a grid if cell editing or a matrix is part of the actual task. Use report view if rows represent items with several displayed attributes. Neither control will confer legal standing on the contents.

Re: TStringGrid or TListView for three objects with legal standing?

· #4

what if the egg hatches

Re: TStringGrid or TListView for three objects with legal standing?

· #5

Then we change its caption. Dan wants a fourth row for the shell, which is how the Future column got funded.

Pete · thirty years of begin and end "It compiled on my machine."

Go up

Sign in to reply