为什么LISTFIELD与KEYFIELD设成同一个字段会出现冲突(可见而不可选)?
如何解决?
如我想在其中的DATAFIELD中加入的是LISTFIELD的值而非KEYFIELD的值如何解决?
如何解决?
如我想在其中的DATAFIELD中加入的是LISTFIELD的值而非KEYFIELD的值如何解决?
解决方案 »
- WebBrowser中如何使用Esc退出!
- 绑定与非绑定的区别?
- 数据库存储
- 如何获得这样的一个HANDLE:用API函数SHELLEXECUTE打开一个文件时,所弹出来的第一个窗口的HANDLE。
- 谁能给我一个套打的程序,谢谢,我急用,送分
- 那位兄弟有分销系统的解决方案?马上发过来,谢谢!
- 关于图像处理的问题,请高手指教。
- delphi有没有字符或整数转二进制数的函数?
- TO airhorse 丢失的分还能回来吗?
- 请问如何将日期由‘2001-3-30’转换成‘20010330’的形式?
- 新手接触midas的若干典型问题!小的头都搞大了!还是不行!望各位大虾赏个脸解答一下!
- 快速开发 DELPHI VB PB 大家觉得哪个好一些值得学呢?!
TDBLookupControl.KeyField
Identifies the field in the ListSource dataset that must match the value of the DataField field.property KeyField: String;DescriptionUse KeyField to link the ListSource of the lookup control to the DataSource. Although the name of the field specified as the KeyField does not have to be the same as the name of the field specified as the DataField, the two fields must have the same values.
//上面的话能看懂就行After specifying the ListField, choose which field the lookup control will actually display with the ListField property.If the DataField field is a lookup field, don't specify anything for KeyField or ListField; lookup controls automatically use the data field's LookupKeyFields property for KeyField.
如果你上面选的ID,
这里就要选另一个表里的与上一个表中ID关联的字段LISTFIELD 用来显示的字段,後一个表中随便什么字段这样,TDBLookupControl中显示的是LISTFIELD ,其实它的值是KeyField