Controls inside StringGrid and BDGrid

My boss asked me to have a grid that, instead of displaying the regular editor (text box), it displays a spin edit (for integers), datatimepicker (for dates), etc, etc, etc.

How do I do it? Plz send source code.
kerberusAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mhervaisCommented:
you can find many compoenents on delphi sites doing that. do not reinvent

regards, marc
0
RBertoraCommented:
eternal darkness
0
RBertoraCommented:
eternal darkness
Rob ;-)
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

BlackDeathCommented:
into oblivion
0
AttarSoftwareCommented:
Either that, or turn off inplace editing, and have an invisible spinedit, combobox, editbox, etc on the same form, which you can position on the cell you just clicked (CellToRect and tControl.SetBounds -- I think), and send the focus to it (SetFocus)...

It is a bit of a pain, as you have to catch the onExit event, and the return/ESC key presses sent to these controls, but it is possible...

Good Luck...

Tim.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AttarSoftwareCommented:
Obviously, you have to set the control visible when you click the grid, and invisible when it looses focus...  heh :O)

Tim.
0
mhervaisCommented:
wahwah
0
EpsylonCommented:
The source code has been sent to ya........ in a bottle.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.