Ehlib Displays the field value as a graphic in the data cell.

Source: Internet
Author: User

-"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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.