>>with THISFORM.pgf1.page2.grdCourse >> .RecordSource = "" >> * Do modifications >> .RecordSource = "tblPRDET" >>endwith >>Cetin
>Grids and RecordSource and ControlSource Properties >In Visual FoxPro 9.0 there is a change in Grid control behavior. >When the RecordSource property for a Grid control is set, >Visual FoxPro 9.0 resets all ControlSource >properties to the empty string ("") for all columns. >In earlier versions of Visual FoxPro, >the ControlSource properties were not properly reset, >so problems could occur when a RecordSource with a different structure was later bound. >This change may impact scenarios involving Access and Assign methods or BINDEVENT( ) > function calls made against a Grid column's ControlSource property. >>