Solved

Controls on grid

Posted on 1999-01-06
1
207 Views
Last Modified: 2012-05-04
hi
how can i make/find grid that his cells are controls that i choose/build ?
for example if i make some new control (from Tcontrol class) and i want them to be shown on in the Grid cells ...
10x
asi
0
Comment
Question by:asi
1 Comment
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 20 total points
ID: 1354815
There are some very good stringgrid controls like advgrid.zip on the DSP (http://sunsite.icm.edu.pl/delphi). Take a look at them and see if they do what you want to do .

If not you need to get your hands dirty and add the necesary properties to manage the new component as a property of the string grid and to tell the string grid which cells will display this control. Then when the user starts editing a cell with this control in it you will need to show the control in the correct position and allow the user to do their editing in that. SImilarly you will need to control the drawing so that the new control appears in the right way in the grid.

THere are a whole load of stringgrid controls with free source on the DSP as well (just search for 'grid' :-) These will also give you some good pointers.

Cheers,

Raymond.

0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

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…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

832 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