![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Выделить строку в DBGrid [D7]
DelphiLexx © (2005-11-14 16:54:00)Есть DBGrid в котором нужно выделять определенным цветом определенну строку. Как это сделать?
Savek (2005-11-14 17:54:00) [1]
procedure TfrmOpenPrihod.DBGrid1DrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumn;
State: TGridDrawState);
begin
if DBGrid1.DataSource.DataSet.FieldByName('Проведено').AsBoolean then
DBGrid1.Canvas.Brush.Color:=clFuchsia
else
DBGrid1.Canvas.Brush.Color:=clAqua;
DBGrid1.DefaultDrawColumnCell(rect,DataCol,column,state);
end;