关于网友提出的“ 如何设置dbgrideh的属性使得可以在dbgrideh中显示imagelist中的图片???”问题疑问,本网通过在网上对“ 如何设置dbgrideh的属性使得可以在dbgrideh中显示imagelist中的图片???”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题: 如何设置dbgrideh的属性使得可以在dbgrideh中显示imagelist中的图片???描述:
研究了控件带的demo1程序中,我自己加了一个dbgrideh,但就是无法把图片显示出来,只是显示了数字。请问要设置那个属性才能把相应的imagelist中的图显示出来?
解决方案1:
我实在懒得打字
To show bitmaps depending on field values. Fill list of values to Column.KeyList property of field values and set Column.ImageList property to ImageList control that have the bitmap in according index. Set Column.NotInKeyListIndex to index of bitmap that will be shown if field's value does not correspond to any value in KeyList (for instance you can set index of image for Null field value). You are not allowed to edit bitmap column. Use blank and mouse click to set next value from Column.KeyList to the field; Shift-blank and Shift-Mouse click to set previous value from Column.KeyList. Set Column.DblClickNextval to True to change value on mouse double click.
You can fill also PickList propery by values of tooltip text. At runtime by moving mouse above image will forces to show text from PickList in tooltips window. Set also Tooltips property to True and ShowHint property of DGBGridEh to True.