Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Populating a DataGrid with memory only variables

Posted on 2004-04-22
2
204 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…

829 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