What’s the difficulty with using a single datasource from a DBGrid and DBTexts?

I am a little puzzled by the question and answer headed”Databases: how can I use two different Data Controls to displaydata from a single DataSource and Table?”What is the difficulty in D1 with simply using a single datasourcefor both a DBGrid and a number of DBTexts?Particular fields can be suppressed from the grid by creatinga full set of TFields and setting visible to false so I fail tosee just what the original problem was.Am I missing something obvious?

You’re not missing anything at all. In fact, you can do just that. The onlyproblem (which I should have mentioned) is the creation of so many TFields.Since the reader was keying on a single column, the solution I provided himwas required less resources, and was a much cleaner implementation thangoing through the process of creating TField objects then switching them offindividually. Sorry if I misled you…

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS