Hi all,
I'm using GRIDs in a number of forms, and VFP sometimes tries to build the Form before the GRID is created properly (so I believe), and when using DYNAMIC BACK COLOR clause, it complains with a string of errors about it being an invalid expression, but if you just ignore these, eventually it displays the GRID properly.
Someone once suggested defining the control source of the GRID in the page/form INIT, instead of in the INIT or Refresh of the control. The problem then is, VFP mangles my headers. I frequently gather more fields in the grid than I display (I guess that's common). But when I put the definition of the control source in the INIT, instead of by GRID control displaying only the fields I want, it squashes a bunch of headers to the left, and then puts one in for every field from the control source.
I tried setting the CONTROLSOURCE values on the GRID itself, and also the text boxes with MYCONTROLSOURCE.MYFIELD1 "bound" to the text box controlsource in the hope that it would only try to display those, but that didn't work either.
Is there a fix/approach for this?
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."
I'm using GRIDs in a number of forms, and VFP sometimes tries to build the Form before the GRID is created properly (so I believe), and when using DYNAMIC BACK COLOR clause, it complains with a string of errors about it being an invalid expression, but if you just ignore these, eventually it displays the GRID properly.
Someone once suggested defining the control source of the GRID in the page/form INIT, instead of in the INIT or Refresh of the control. The problem then is, VFP mangles my headers. I frequently gather more fields in the grid than I display (I guess that's common). But when I put the definition of the control source in the INIT, instead of by GRID control displaying only the fields I want, it squashes a bunch of headers to the left, and then puts one in for every field from the control source.
I tried setting the CONTROLSOURCE values on the GRID itself, and also the text boxes with MYCONTROLSOURCE.MYFIELD1 "bound" to the text box controlsource in the hope that it would only try to display those, but that didn't work either.
Is there a fix/approach for this?
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."