
15.05.2009, 22:32
|
Активный
|
|
Регистрация: 15.04.2009
Сообщения: 369
Репутация: 93
|
|
Код:
...
DBGrid.Options:=DBGrid.Options+[dgRowSelected];
...
...
procedure TDlg_SysCalend.DBGrid_CDrawDataCell(Sender: TObject;
const Rect: TRect; Field: TField; State: TGridDrawState);
begin
with DBGrid.Canvas do
begin
if (gdSelected in State) then begin
Brush.Color:=clYellow;
Font.Color:=clBlack;
FillRect(Rect);
DBGrid_C.DefaultDrawDataCell(Rect, Field, State);
end;
end;
end;
|