Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a control in a Grid
Message
 
To
28/07/1998 08:40:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00121922
Message ID:
00122023
Views:
17
Hi Luis,

Increment the ColumnCount of your grid. You can refer to the new column by:
LOCAL lnCount
WITH thisform.grdMyGrid
   lnCount = .ColumnCount + 1
   .ColumnCount = lnCount
   .Columns(lnCount).AddObject('MyCheckBox', 'CheckBox')
   .Columns(lnCount).MyCheckBox.Visible = .T.
   .Columns(lnCount).RemoveObject('Text1')
   .Columns(lnCount).ControlSource = "YourTable.Field"
ENDWITH
>I've got a grid in a form and on the fly I want to create a checkbox control in a grid column.
>Thanks in advance, Luis.
Previous
Reply
Map
View

Click here to load this message in the networking platform