研究了控件带的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.