Reputation: 75130
Is there any real equivalent of C#'s DataGridView in Delphi?
I have tried
TStringGrid
TDBGrid
TDBGrid
would be fine for me to use.So what is the Delphi equivalent of C#'s DataGridView
that doesn't have the problems listed above?
Upvotes: 3
Views: 2645
Reputation: 6752
I would recommend you to check DevExpress.com QuantumGrid - it works both in Bound and Unvound mode
Upvotes: 0
Reputation: 136391
The DataGridView
is a very flexible control which can work in bound and unbound modes, in the Delphi side you must choose bewteen 2 kinds of controls, for example if the content of the control can be edited directly (unbound) you can choose a component like a TStringGrid or in bound mode which in delphi is called data-aware you must choose something like a dbgrid, in this last case you edit the dataset asociated to the control and the control reflect the content of the dataset. Using this last scenario. you have several options about the dataset component to choose maybe the most flexible is the TClientDataSet
. if you want learn more about this topic check these links
Note : in the last version of Delphi (XE2) a new concept was introduced called LiveBindings, which introduces big changes in how you can bind a object or component to a collection or another component.
Upvotes: 3