Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7087435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:40:26+00:00 2026-05-28T07:40:26+00:00

I would persuade a friend me that using Using Database Components (DB Aware Controls)

  • 0

I would persuade a friend me that using Using Database Components (DB Aware Controls) in Delphi is by far the best option, when developing database applications.

This debated started with him many years ago: still today he is persuaded that using simple controls like TEdit, TStringGrid etc., with a set of getter and setter methods to populate them, is the best solution both in terms of flexibility and maintainability of the whole project.

To me this sound counter-intuitive at least.

I think that using DB Aware Controls, like TDBEdit, TDBGrid etc. is the right thing to do when developing database applications.

So: please help me convince him with sound advises about using DB Aware Controls!

Thank you in advance to all of you that will post at least his own advice, whatever will be in favor of one or the other solution.

—
fabio vitale

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:40:27+00:00Added an answer on May 28, 2026 at 7:40 am

    DB-Aware vs non DB-Aware is kind of a obsolete discussion. DB-Aware controls have automatic databinding, which means they autofills themself with data, do change detection and write to the members of the datasource bounded; in non-dbaware controls, it’s up to you to do those tasks. This can lead to messy code too – or overengineered frameworks just to do databinding. Both scenarios are bad.

    The kind of datasource and the quality of the individual control will determine the performance. I’ve seen a lot of code to databind TStringGrid simply just to avoid TDBGrid because of purism (when TDbGrid would do nicely) – just a overly absurd loss of time.

    It became an obsolete discussion when TClientDataset became the de-facto dataset for disconnected applications: you can pull data, disconnect, work on data, connect again and apply changes. Since CDS+DbAware controls will do 99% of the interface, you use the non-data-aware controls for the next 1% (for some complex interfaces).

    I still don’t have XE2 to see if LiveBindings do the OO databinding work nicely – if so, now all controls can db-aware if needed.

    EDIT: in da-soft’s answer, he(she?) argues that DbAware controls implements MVC pattern and LachlanG disagrees that, even it does, doesn’t that code itself is MVC. I’ll give my $0,02 cents here 😉

    I think that the use of a 1:1 relation in DataModule and Entity (as in ERD) – or DataModule and a Form – you can get an application where responsibilities are separated:

    • form dfm -> Layout and design-time databinding (have only Datasources)
    • form *.pas -> controls interface and asks Data Module for data (acts like a controller)
    • Data Module -> methods to answer forms requests for data retrieval
      and data updates

    I normally have an separated data module for database connection which is passed through forms/entities’ properties.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Would it be possible to print Hello twice using single condition ? if condition
Would it be possible to show an image in full screen mode using silverlight.
Would having a nice little feature that makes it quicker to write code like
Would it be possible to write a class that is virtually indistinguishable from an
I have a django project with an existing db that I would really like
Would an app that uses a significant location change notification to wake itself up
Would someone kindly assist me with the following? I have two DataGridView objects that
I was looking around the net for a NUnit custom MSBuild task that would
Would prefer an answer in C#, .Net 3.5 using WPF (Windows Forms also okay)
Would you, dear all, suggest me best practices to get constant animation speed not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.