checkbox in grids

kylepyro

Active Member
HI List - I'd like to add a checkbox field to the grid in a headerless detail. I can add the dictionary fields that are checkboxes and changes the display style attribute on the grid column, but when I look at the grid I just get a normal column with 0/1. Does anyone know if this "feature" actually works? If so, what do I have to do to make mine behave as I expect.

I can't say that I have seen one operating in an application.

XE, SP17, AS400, V4R5M0
 
Hi Kyle,

Although I do not know how to create a check box in the grid row, I have a work around idea which could be appropriate for you.

1.) Enable Row headers on your grid.
2.) Cretae a grid scope variable, e.g. grd_cMarked_EV01
3.) Go to the "DoubleClickOnRowHeader
4.) Enter an ER logic, which will switch the value of the grd_cMarked_EV01 grid variable based on its previous state and set the bit map accordingly on the row header via "Set Grid Row Bitmap" system function call (Grid Category).
=======================
If VA grd_cMarked_EV01 is equal to "1"
VA grd_cMarked_EV01 = "0"
Set Grid Row Bitmap(FC Grid, <Currently Selected Row>, <Blank/Clear>)
Else
VA grd_cMarked_EV01 = "1"
Set Grid Row Bitmap(FC Grid, <Currently Selected Row>, <Check Mark>)
End If
========

Please, let us know that does it work for you or not! Thanks!

Regards,

Zoltán

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 
Back
Top