Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Components Misc > ExpressQuantumG...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 221 of 240
Post > Topic >>

ExpressQuantumGrid issue

by euthymos@[EMAIL PROTECTED] (firefox88) Mar 15, 2006 at 02:03 PM

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:

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!  :D




 1 Posts in Topic:
ExpressQuantumGrid issue
euthymos@[EMAIL PROTECTED  2006-03-15 14:03:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 0:40:57 CDT 2008.