Link to home
Start Free TrialLog in
Avatar of Nirmal Sharma
Nirmal SharmaFlag for United States of America

asked on

Grid and Data Binding

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
Avatar of Nirmal Sharma
Nirmal Sharma
Flag of United States of America image

ASKER

Please close this - I have answered the questions on my own!

Thanks!
SP
ASKER CERTIFIED SOLUTION
Avatar of Olaf Doschke
Olaf Doschke
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks!