老问题,GRID 空白!
有一个按钮的.CLICK 事件代码:(其实就是向表添加一条空记录)
thisform.Grid1.RecordSource =''
SELECT 1
USE
SELECT 4
USE I:\JINCEN
APPEND BLANK
thisform.Grid1.ColumnCount = 4
*thisform.Grid1.RecordMark= .F.
*thisform.Grid1.ScrollBars= 0
*thisform.Grid1.DeleteMark= .F.
*thisform.refresh
thisform.grid1.BackColor=RGB(217,158,0)
thisform.grid1.FOREColor=RGB(0,0,250)
thisform.grid1.RecordSourceType= 0
thisform.grid1.recordsource="i:\jincen"
thisform.grid1.Column1.ControlSource="进程"
thisform.grid1.Column2.ControlSource="信任"
thisform.grid1.Column3.ControlSource="路径"
thisform.grid1.Column4.ControlSource="基本"
thisform.grid1.Column1.Header1.Caption="进程"
thisform.grid1.Column2.Header1.Caption="信任"
thisform.grid1.Column3.Header1.Caption="路径"
thisform.grid1.Column4.Header1.Caption="基本"
thisform.grid1.Column1.Width=120
thisform.grid1.Column2.Width=30
thisform.grid1.Column3.Width=400
thisform.grid1.Column4.Width=30
THISFORM.Refresh
THISFORM.Grid1.Refresh
结果GRID 显示是空白,查了论坛帖子,还是没有解决,给位看看问题出在那里,谢谢!