?
Solved

Grid and Data Binding

Posted on 2010-09-02
3
Medium Priority
?
432 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
  • 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 30

Accepted Solution

by:
Olaf Doschke earned 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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…
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Integration Management Part 2
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

864 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