Solved

Populating a DataGrid with memory only variables

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

707 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