- This topic has 11 replies, 3 voices, and was last updated 5 years, 6 months ago by Support.
-
AuthorPosts
-
March 10, 2019 at 4:51 pm #38190HeDiBoParticipant
There are already a couple of solutions for this in a standard TDBGrid, but they're very bound to the TDBGrid implementation and certainly do not adhere to the AlphaSkin skinning rules: it would be very nice if in a TacColumn I could have a property: ShowCheckBox that's settable to True if the underlying field is a boolean field. It's function should be clear, I suppose.
Would be a nice addition to the TsDBGrid.
April 22, 2019 at 2:07 am #59383arobertsParticipantHello,
Have you checked out the TSMDBGrid? It has that feature (and lots more). Alpha can skin it beautifully (using the third-party feature, of course), and it's totally freeware. It has become my go-to grid.
April 22, 2019 at 10:27 am #59387HeDiBoParticipant'aroberts' wrote:Have you checked out the TSMDBGrid? It has that feature (and lots more). Alpha can skin it beautifully (using the third-party feature, of course), and it's totally freeware. It has become my go-to grid.
I'm lucky enough to be able to use the ExpressQuantumGrid components from DevExpress. DevExpress components are very very well supported in AC. So, if I really need a Checkbox for a boolean field, that's the way to go for me. But ExpressQuantumGrid has an extremely heavy footprint. And I only want a checkbox for a boolean field.
TSMDBGrid can draw checkboxes for boolean fields, but they are not skinned. Especially in dark skins the grid looks awful.
Nevertheless I want to thank you for your valued input.
So, Serge, I still would like a TsDBGrid property ShowBoolAsCheckBox.
May 2, 2019 at 7:20 am #59408SupportKeymasterSorry, some difficulties exists in implementing of this new feature.
There are no problems with drawing of checkboxes, but redrawing of cells when table is in Edit mode is not easy.
May 2, 2019 at 9:58 am #59413HeDiBoParticipant'Support' wrote:Sorry, some difficulties exists in implementing of this new feature.
There are no problems with drawing of checkboxes, but redrawing of cells when table is in Edit mode is not easy.
I found this in StackOverflow:
https://stackoverflo…box-in-a-dbgrid
Does the third answer there help you any?
May 4, 2019 at 6:12 pm #59421SupportKeymasterThank you.
I did something similar, but problem in repainting exists, I will research it more.
May 8, 2019 at 10:06 am #59431HeDiBoParticipant'Support' wrote:Thank you.
I did something similar, but problem in repeating exists, I will research it more.
I would be more than happy to assist you in your search.
If you send me the source as it is sofar, I'll try to find a solution.
May 8, 2019 at 10:29 am #59432HeDiBoParticipantI found this forum post, containing an overview of the problems one might encounter:
http://www.delphigroups.info/2/1/326064.html
The answer from Lester Hanger shows the difficulties and possible solutions.
Maybe it would be a good idea to support the TSMDBGrid in AC (like the TcxGrid).
May 8, 2019 at 12:56 pm #59434HeDiBoParticipantI found this on SourceForge:
https://sourceforge.net/projects/sfextdbctrl/
It contains a TSFDBGridInplaceCheckBox component. An inplace checkbox editor for a Yes/No or True/False field.
This is the package:
[attachment=9282:SFExtDBCtrl.zip]
It still has some quirks, but it looks promising.
May 9, 2019 at 6:40 pm #59438SupportKeymasterHello
I will send the changed acDBGrid.pas file by PM, something wrong with repainting after checkbox changing there.
SFExtDBCtrl I will check later.
May 13, 2019 at 2:56 pm #59454HeDiBoParticipant'Support' wrote:Hello
I will send the changed acDBGrid.pas file by PM, something wrong with repainting after checkbox changing there.
SFExtDBCtrl I will check later.
I have sent you a changed acDBGrid.pas to your e-mail address (support@alphaskins.com). Did you receive it?
May 13, 2019 at 4:07 pm #59455SupportKeymasterChanged file is received, thank you.
-
AuthorPosts
- You must be logged in to reply to this topic.