Solved

Grid and Data Binding

Posted on 2010-09-02
3
412 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:Nirmal Sharma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Author Comment

by:Nirmal Sharma
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:Nirmal Sharma
ID: 33711892
Thanks!
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

707 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