-"Custom grid data unit"
Displays the field value as a graphic in the data cell.
Tdbgrideh allows to show bitmaps from Timagelist component depending on field values.
Tdbgrideh can display the corresponding BMP in the Timagelist component based on the value of the field.
To show bitmaps depending on field values need:
To display the BMP picture according to the value of the field,
Fill List of field values to Column.keylist property (every value in separate line) and set Column.imagelist property to I Magelist control that have the bitmap in according index.
Populate the value of the field into the Column.keylist property (a single row per value) and set the ImageList property of the column to a ImageList component that contains the sequential BMP.
Set Column.notinkeylistindex to index of bitmap that would be shown if field ' s value does not correspond to any value in Ke Ylist (for instance you can set index of the image for Null field value).
Set the Notinkeylistindex property to a BMP picture index, if the value does not correspond to any one of the values in keylist, such as setting only one image index for a null field.
At run time is not a allowed to edit bitmap in column cell.
At run time, you cannot edit a picture in a column.
Use blank key and mouse click to set next value from Column.keylist to the field;
Use the SPACEBAR and mouse click to set the next value
Shift-blank Key and Shift-mouse Click to set previous value from Column.keylist.
Previous value
Set Column.dblclicknextval to True has allows to change value on mouse double click.
with dbgrideh1.fieldcolumns['seller_flag'do//cannot use columnbyname unless the column name is already set begin keylist.commatext:'0,1,2,3,4,5'; Notinkeylistindex:0; ImageList:= imglflag; End;
Ehlib Displays the field value as a graphic in the data cell.