BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ExpressQuantumGrid issue

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.misc
View previous topic :: View next topic  
Author Message
firefox88
Junior Member


Joined: 15 Mar 2006
Posts: 1

PostPosted: Wed Mar 15, 2006 7:38 pm    Post subject: ExpressQuantumGrid issue Reply with quote



Dear developers,

I've got an issue with ExpressQuantumGrid.

I want the rows to change color whenever the user moves the mouse over them.

I've deeply searched on the Internet but found nothing interesting. Seems that nobody needs to do that, but I find it so obvious and simple!

Editing some examples found in the Internet, I made this solution:

Code:
procedure TMainForm.MainGridMouseMove(Sender: TObject;
  Shift: TShiftState; X, Y: Integer);
var
  Site: TcxGridSite;
  HitTest: TcxCustomGridHitTest;
  Item: TcxCustomGridTableItem;
  Rec: TcxCustomGridRecord;
begin
  Site := Sender as TcxGridSite;
  HitTest := Site.GridView.ViewInfo.GetHitTest(X, Y);

  if HitTest is TcxGridRecordCellHitTest then
  begin
    Rec := TcxGridRecordCellHitTest(HitTest).GridRecord;
    Rec.Focused := True;
  end;
end;


The problem is that only ONE cell is selected, and not the whole row. You might say me "so disable cell select". But this means disabling cell editing. There are some checkboxes in the grid, and if I disable cell editing, those checkboxes become inactive.

What can I do?
Thank you in advance! Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.