X xiaohu66625 Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-24 #1 在DBGRID中能显示combobox里的数据吗?该怎样做?谢谢
W wangminqi Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-24 #2 可以,在dbgrid 中增加 字段,字段的picklist就起combobox的 items的作用
X xiaohu66625 Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-24 #3 能说的详细些吗?谢谢,是不是这么写?dbgrid1.Columns[0].PickList:=combobox1.text;
X xiaohu66625 Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-24 #4 for i:=0 to dbgrid1.columns.count-1 do begin dbgrid1.columns.picklist.clear; dbgrid1.columns.picklist.add('选项hhh'); dbgrid1.columns.picklist.add('选项2df'); dbgrid1.columns.picklist.add('选项3er'); end; 我这么写的,写进去了,为什么显示不出来呢
for i:=0 to dbgrid1.columns.count-1 do begin dbgrid1.columns.picklist.clear; dbgrid1.columns.picklist.add('选项hhh'); dbgrid1.columns.picklist.add('选项2df'); dbgrid1.columns.picklist.add('选项3er'); end; 我这么写的,写进去了,为什么显示不出来呢
H haiyuinfo Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-24 #5 将buttonstyle改为 cbsEllipsis 试一下
K kalvin666 Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-24 #6 for i:=0 to dbgrid1.columns.count-1 do begin dbgrid1.columns.picklist.clear; dbgrid1.columns.picklist.add('选项hhh'); dbgrid1.columns.picklist.add('选项2df'); dbgrid1.columns.picklist.add('选项3er'); end; 我这么写的,写进去了,为什么显示不出来呢 这样ok吗?
for i:=0 to dbgrid1.columns.count-1 do begin dbgrid1.columns.picklist.clear; dbgrid1.columns.picklist.add('选项hhh'); dbgrid1.columns.picklist.add('选项2df'); dbgrid1.columns.picklist.add('选项3er'); end; 我这么写的,写进去了,为什么显示不出来呢 这样ok吗?
A adrift_2006 Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-24 #7 用第三方控件吧 express系列的,很好的
F fghyxxe Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-24 #8 好像有个开关控件的..你找找看...这个控件用得非常少...
W wangminqi Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-27 #9 to xiaohu66625: 你那段代码可以的,只是要选中某一单元格,再点一次变成可编辑状态 ,这时右面会显示一个下拉框