Вы находитесь на странице: 1из 2

TGridView component for Borland Delphi

. , 1997-2001
E-mail: roman@sar.nnov.ru, checker@mail.ru
WWW: http://www.sar.nnov.ru/~roman/download/GridView.zip
: () 2002 , iluha@convex.ru
TGridView
-----------------------------------------------------Q: ,
, AutoSynchronize True. ?
A:
. ,
,
True Header.FullSynchronizing.
Q: , . ,
, , ,
, .
.
A: , __ ,
. , (, -
, , WMF ..) .
.. __ , .
TCustomGrid TStringGrid -
TGridView TCustomGrid
.
A: MultiSelect?
Q: . MultiSelect (
), .
GridView , ,
, , MultiSelect.
Q: c OnGetCheckIndent,
OnGetCellImageIndent, OnGetCellTextIndent. ,
.
A: . ,

( MS Internet News), :
1. OnGetCheckKind,
:
if Cell.Col = 0 then CheckKind := gsUserDefine;
2. OnGetcheckImage
"+" "-" :
if _ then
CheckImage.Assign(__)
else
CheckImage.Assign(__);
3. OnGetCheckIndent
:
if Cell.Col = 0 then Indent.X := Indent.X + 16 * _.

Q: . -
?
A: :
- OnGetCellText
,
( ,
TStringGrid).
- , ,

(, ). , Canvas
OnGetCellColors .
- EndEllipsis Column.MultiLine
. True,
DrawTextEx, - ExtTextOut.
. -
TStringGrid TDBGrid ExtTextOut.
Q: RunTime .
, - . ?
A: Header.AutoSynchronize. True,

. .. ,
. ..
, , , .
Q: , , InvalidateGrid.
, - . ?
A:
.
InvalidateGrid ,
.
, UpdateEditContents.
Q: ,
.
A: UpdateEditText
,
TDBGrid).

,
?
Editing := False.
AlwaysEdit True (

Q: PickList, TComboBox
Style = csDropDownList. ReadOnly
True, ,
. False, .
?
A: MaxLength -1.
.
Q: TDBGRidView?
,
.
A: , DataSet,
. ,
DataSet.

Вам также может понравиться