Jump to content

UniDBGrid DrawColumnCell > SelectedCell?


ttamturk
 Share

Recommended Posts

Hi Farshad,

 

How can I determine cell is selected or not?

procedure TMainForm.UniDBGrid1DrawColumnCell(Sender: TObject; ACol,
 ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs);
begin
 if IstekDurumIdField <> Nil then begin
    case IstekDurumIdField.AsInteger of
    2,3 : Attribs.Color := $00BFFFFF;     
    4 : Attribs.Color := $00DFDFDF;       //<< If Cell is "Selected" then I will use DARKER COLOR..
    end;
 end;  
end;

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...