?
Solved

Grid and Data Binding

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

Docker-Compose to Simplify Multi-Container Builds

Our veteran DevOps Author takes you through how to build a multi-container environment, managed with a single utility in order to simplify your deployments.

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…
New style of hardware planning for Microsoft Exchange server.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

752 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