Solved

Populating a DataGrid with memory only variables

Posted on 2004-04-22
2
206 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
[X]
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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

738 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