?
Solved

Populating a DataGrid with memory only variables

Posted on 2004-04-22
2
Medium Priority
?
208 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 160 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month12 days, 18 hours left to enroll

777 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