Solved

Populating a DataGrid with memory only variables

Posted on 2004-04-22
2
201 Views
Last Modified: 2010-04-05
How do you connect a DataGrid to a set of array variables or a recordset that exists only in memory?

This recordset is to be written to at runtime and its content discarded afterwards.
0
Comment
Question by:ziche
2 Comments
 
LVL 11

Expert Comment

by:calinutz
ID: 10886397
You could use a StringGrid on runtime when you populate it with data. When you want to update, insert... into a real Table you can get the fields from the stringGrid. And of course you can leave it like that if you don't want any updates nor inserts made.
0
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 40 total points
ID: 10886931
use a TClientDataset - it's an in-memory DataSet descendant that does a lot more
doubleclick on it and add New fields, then use CreateDataset to open it
also add MidasLib to the uses clause to staticaly link in the midas lib :)
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now