VF中,怎么设置表格(表格控件)中的列的数据源?。。。
1个回答
展开全部
看看如下代码就明白了:
THISFORM.GRID1.recordsource='jzpz'
WITH THISFORM.GRID1
.COLUMN1.WIDTH=180
.COLUMN2.WIDTH=80
.COLUMN3.WIDTH=80
.COLUMN1.HEADER1.CAPTION='摘 要'
.COLUMN2.HEADER1.CAPTION='借方金额'
.COLUMN3.HEADER1.CAPTION='贷方金额'
.COLUMN1.controlsource='jzpz.zy'
.COLUMN2.controlsource='jzpz.jfje'
.COLUMN3.controlsource='jzpz.dfje'
endwith
THISFORM.GRID1.recordsource='jzpz'
WITH THISFORM.GRID1
.COLUMN1.WIDTH=180
.COLUMN2.WIDTH=80
.COLUMN3.WIDTH=80
.COLUMN1.HEADER1.CAPTION='摘 要'
.COLUMN2.HEADER1.CAPTION='借方金额'
.COLUMN3.HEADER1.CAPTION='贷方金额'
.COLUMN1.controlsource='jzpz.zy'
.COLUMN2.controlsource='jzpz.jfje'
.COLUMN3.controlsource='jzpz.dfje'
endwith
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询