Solved

Controls on grid

Posted on 1999-01-06
1
204 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now