Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a Checkbox to a Grid in program
Message
From
24/09/1998 09:30:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/09/1998 07:20:51
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00140283
Message ID:
00140328
Views:
21
>I have a grid that has a logical field and the recordsource is from a cursor. The coulumncount is set to -1 so the columns are automaticly filled. How do I show the logical column DoPrint as a checkbox?
>
>Thanks
John,
Below sample is a grid that's just dropped from control toolbar (default grid - columncount -1).
* Init
with this
select .f. as lSelected,* ;
	from home()+"samples\data\customer" ;
	into cursor myCursor 
local lcAliasName
lcAliasName = "tcSelector"+padl(select(0),3,"0")
use (dbf("myCursor")) in 0 again alias (lcAliasName)
select (lcAliasName)
    .recordsource = lcAliasName
    .columns(1).addobject("Check1","Checkbox")
    .columns(1).currentcontrol = "Check1"
    .columns(1).Check1.caption = ""
    .columns(1).Check1.visible = .t.
    .columns(1).sparse = .f.
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform