Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Базы";
Текущий архив: 2003.01.27;
Скачать: [xml.tar.bz2];

Вниз

Отображение поля Boolean в DBGrid   Найти похожие ветки 

 
GeRon   (2003-01-08 09:06) [0]

Имеется база данных в которой кроме других полей имеется поле типа Boolean. Как отобразить в DBGrid это поле под тип DBChekBox(Т.е. чтобы значение отображалось ввиде "галочки" а не "True" или "False"?


 
Johnmen   (2003-01-08 09:12) [1]

Отрисовать соотв.ячейку грида самому.


 
kat   (2003-01-08 09:58) [2]

использовать Grid из EHLibrary


 
Max Zyuzin   (2003-01-08 10:20) [3]

http://www.delphikingdom.com/helloworld/dbgridcolor.htm


 
Verg   (2003-01-08 11:06) [4]

А как насчет DisplayValues у TBooleanField ???


 
Verg   (2003-01-08 11:07) [5]

Controls how the Boolean field is translated to and from display format.

property DisplayValues: string;

Description

Use DisplayValues to specify strings you want used to represent Boolean values. Use any pair of phrases, separated by a semicolon. For example, to have the True and False values correspond to the letters T and F, respectively, set DisplayValues to

T;F

Similarly, to set the values of True and False to the strings Yes and No, set DisplayValues to

Yes;No

The string associated with True or False can be an empty string. To set the value for True to an empty string, set DisplayValues to a string that begins with a semicolon. For example, to associate False with the string Fail, and True with an empty string, set DisplayValues to

;Fail

To associate False with an empty string, set DisplayValues to the string for True, with no semicolon at all.

The strings associated with True and False by DisplayValues appear in data-aware controls when they display the data for a Boolean field. If one of the strings is an empty string, Boolean values associated with that string appear blank in data-aware controls.

These strings are also used when getting or setting the Boolean field’s AsString property.



Страницы: 1 вся ветка

Форум: "Базы";
Текущий архив: 2003.01.27;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.01 c
1-86832
Dor
2003-01-19 11:58
2003.01.27
Есть label1,нужно что в label1.caption было текущее время


9-86610
Карлсон
2002-07-27 15:27
2003.01.27
Почему столкновения не всегда срабатывают?


14-87033
Snake2000
2003-01-10 17:21
2003.01.27
Заработок в Интернет


1-86927
waw
2003-01-16 16:27
2003.01.27
TIdCoderMD5


3-86628
andsm
2003-01-09 14:51
2003.01.27
BDE и General SQL Error





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский