I ran "C:\HMG.3.4.4\Samples\Controls\Grid\Grid_CheckBoxes\Demo.prg"
Here Column #1's display gives what I want: However this does not show in my Grid. My Column #1's has no CheckBox:[/i] Important:
My Grid's Column Controls Array: {{"CHECKBOX"},{'TEXTBOX'}, {'TEXTBOX'},.....}
My Column #1's control source is a .DBF field of type LOGICAL.
My .FRM code is created using the HMG IDE.
NOTE: I have read the following relevant forum post:
https://www.hmgforum.com/viewtopic.php? ... led#p62213
salamandra » Tue Jun 02, 2020 5:16 am
mol wrote: Mon Jun 01, 2020 11:47 pm
I want to redefine piece of code and use Grid with CheckBoxItems.
I'm using IDE to design form. But, I can't see possibility for grid with CheckBoxItems. Am I wrong?
No, you can´t, but you can enable checkboxes at window loading time
Thus: My code contains this (from salamandra):
Code: Select all
....
LOAD window DataBrowse
// https://www.hmgforum.com/viewtopic.php?f=5&t=6467&p=62213&hilit=CheckBoxEnabled#p62213
// /* Enable checkboxes here */
DataBrowse.BrowseStates.CheckBoxEnabled := .T. /* Form_1.Grid_1.CheckBoxEnabled := .T. */
....Thank you!
Red2