Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 754
  • Last Modified:

VSFlexGrid VB6

I am building column for my FlexGrid in the run time. One of the column is built like being a check box:
.TextMatrix(0, FG_DESK_REVIEW_COL) = "Desk Review"
               .ColDataType(FG_DESK_REVIEW_COL) = flexDTBoolean
I need  help to check-uncheck this column in the run-time base either on the value of the column in the recordset, or the event on the form.

Any help is appreciated.
0
Aquarus
Asked:
Aquarus
2 Solutions
 
Meir RivkinFull stack Software EngineerCommented:
to check/uncheck on runtime u can use the following syntax:

.TextMatrix(1, 1) = 1         ' checked
.TextMatrix(2, 1) = True      ' checked
.TextMatrix(3, 1) = "True"    ' checked
.TextMatrix(4, 1) = 0         ' not checked
.TextMatrix(5, 1) = "False"   ' not checked
0
 
VBClassicGuyCommented:
A neat trick you can incorporate display-wise is to set the column's cells to Wingdings font. Then use character #111, 112, 113, or 114 (depending on your personal taste) for an unchecked box, and character #253 for an "X" in the box or 254 for a checkmark in the box.
Attached is an example of what it looks like...

Image4.jpg
0
 
AquarusAuthor Commented:
Thank you experts.  It worked and looks neat now.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now