Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > IT форум > Помощь студентам
Регистрация

Восстановить пароль

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 26.10.2012, 13:10   #1
РОГЕР
Новичок
Джуниор
 
Аватар для РОГЕР
 
Регистрация: 17.10.2012
Сообщений: 1
По умолчанию Как сделать, чтоб в DBGrid при выделении мышкой одной ячейки выделялась вся строка?

Как сделать, чтоб в DBGrid при выделении мышкой одной ячейки выделялась вся строка или столбец?
РОГЕР вне форума Ответить с цитированием
Старый 26.10.2012, 14:28   #2
evg_m
Старожил
 
Регистрация: 20.04.2008
Сообщений: 5,543
По умолчанию

Цитата:
при выделении мышкой одной ячейки выделялась вся строка
посмотреть в справке свойства
Цитата:
Description

TDBGridOptions is a set drawn from the following TDBGridOption values:

Value Meaning
dgEditing The user can edit data using the grid. dgEditing is ignored if Options includes dgRowSelect.
dgAlwaysShowEditor The grid is always in edit mode. That is, the user does not have to press Enter or F2 before editing the contents of a cell. dgAlwaysShowEditor does nothing unless dgEditing is also included in Options. dgAlwaysShowEditor is ignored if Options includes dgRowSelect.
dgTitles Titles appear at the top of the columns in the grid.
dgIndicator A small pointer appears in the first column to indicate which row is current.
dgColumnResize Columns that are bound to fields can be resized or moved.
dgColLines Lines appear between columns in the grid.
dgRowLines Lines appear between the rows of the grid.
dgTabs The user can navigate through the grid using the Tab and Shift+Tab keys.
dgRowSelect The user can select an entire row, as well as selecting individual cells. If Options includes dgRowSelect, dgEditing and dgAlwaysShowEditor are ignored.
dgAlwaysShowSelection The selected cell displays the focus rectangle even when the grid does not have focus.
dgConfirmDelete A message box appears, asking for confirmation, when the user types Ctrl+Delete to delete a row in the grid.
dgCancelOnExit When the user exits the grid from an inserted record to which the user made no modifications, the inserted record is not posted to the dataset. This prevents the inadvertent posting of empty records.
dgMultiSelect More than one row in the grid can be selected at a time.
Цитата:
или столбец?
придется писать собственную отрисовку. Как?
опять справка
Цитата:
Indicates whether the cells in the data-aware grid are drawn automatically.

property DefaultDrawing: Boolean;
далее по ссылкам SeeAlso & Examlpe
программа — запись алгоритма на языке понятном транслятору
evg_m вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Как сделать так чтоб разграниченные ячейки не считались заполненными Zlodeyatel Microsoft Office Excel 4 24.09.2012 23:25
как сделать чтоб по клику в TreeView в DBGrid yaskin БД в Delphi 8 13.05.2012 10:42
Как сделать чтоб при нажатии кнопки форма не работала? quarty Помощь студентам 6 05.11.2010 15:50
выбор активной ячейки при выделении в listbox-e serafim09 Microsoft Office Excel 5 25.03.2010 10:37
Как сделать чтоб грузилась 2-ая картинка при наведении указателя? Roof Помощь студентам 5 02.08.2007 12:08