Solved

Grid and Data Binding

Posted on 2010-09-02
3
362 Views
Last Modified: 2012-05-10
Hi,

I have added a Grid in Form Init - code shown below:

Procedure Init

            thisform.TopFrame.Page1.ADDOBJECT('Grid1','Grid')

            thisForm.TopFrame.Page1.Grid1.RecordSource="DataInv"
            thisForm.TopFrame.Page1.Grid1.ColumnCount = 3
            thisForm.TopFrame.Page1.Grid1.Top = 20
            thisForm.TopFrame.Page1.Grid1.Left = 10
            thisForm.TopFrame.Page1.Grid1.Height = 120
            thisForm.TopFrame.Page1.Grid1.Width = 540
            thisForm.TopFrame.Page1.Grid1.Panel = 0
            thisform.TopFrame.Page1.Grid1.Themes = .F.
            *ThisForm.TopFrame.Page1.Grid1.AllowAutoColumnFit = 2
            *ThisForm.Grid1.HighlightStyle=1

            thisForm.TopFrame.Page1.Grid1.visible = .t.

EndProc

Questions:

There are few checkboxes which are displayed when a Column in the Grid is selected. I'm using PROCEDURE grid1.AfterRowColChange but this doesn't seem to work. Shall I use Procedure AfterRowColChange?

Thanks!
SP
0
Comment
Question by:Nick Sui
  • 2
3 Comments
 
LVL 35

Author Comment

by:Nick Sui
ID: 33589362
Please close this - I have answered the questions on my own!

Thanks!
SP
0
 
LVL 29

Accepted Solution

by:
Olaf Doschke earned 500 total points
ID: 33589417
AfterRowColChange happens each time user clicks on the grid after the active cell has changed. If you want a combobx in all rows, you better add that control to the column object and set currentcontrol to it and set the columns sparse property to .f.

In fact I don't understand exactly what you want to do or happen. do you want checkboxes to appear or do you want them to not appear or to only appear if the cell is active?

Bye, Olaf.
0
 
LVL 35

Author Closing Comment

by:Nick Sui
ID: 33711892
Thanks!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
A procedure for exporting installed hotfix details of remote computers using powershell
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now