Hello,
you could go several ways.
If the check value should be editable in the grid i would go for a
checkbox with picture and disabled picture property set ..
If it should not be editable 2 Picture Controls in the Column and then setting
yourGrid.yourColumn.DynamicCurrentControl = "IIF(yourTable.yourField,'picture1','picture2')"
would be sufficent
for the checkbox solution there are some pitfalls to make the whole thing look pretty ..
i've tried several hours to get this working:
here's the checkbox-class i use:
make a new class based on container
put a normal checkbox in it and set the following propertys:
Container:
Width = 20
Height = 19
Borderwidth = 0
Checkbox:
Picture and Downpicture to yourPictures
Height = 31
Width = 27
Left = -4
Top = -6
Style = 1 (Graphical)
because when the checkbox is pressed the downpicture is not exactly at the position of the normal picture you have to paint for example a rectangle
in the downpicture shiftet by 1 pixel to the top and 1 to the left of the position of the rectangle in the normal picture.
Regards
Christian
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only