Consult, cxgrid have an event is the data load (display), I think after completion of the data load in a certain operating conditions change color or bold,
CodePudding user response:
There is no such events.
CodePudding user response:
reference 1st floor simonhehe response: there is no such events. I ask how do you know that cxGrid display (load) finish? CodePudding user response:
cxGrid1DBTableView1. DataController. BeginUpdate;//update the data, interface lock, no response message Try CxGrid1DBTableView1. DataController. AppendRecord;//to add this Adoquery. Open;//if it is even a data source with the The finally CxGrid1DBTableView1. DataController. EndUpdate;//data update complete end; {there are below two, you can use according to the specific situation. CxGrid1DBTableView1. DataController. BeginFullUpdate; CxGrid1DBTableView1. DataController. EndFullUpdate; } CodePudding user response:
Made, EHLIB CXGRID found no similar events Procedure Tform1. DBGridEh1DrawColumnCell (Sender: TObject; Const the Rect: TRect; DataCol: Integer; Column: TColumnEh; State: TGridDrawState); The begin If dbgrideh1. The datasource. The dataset. Fields [0]. The Text)=' The Begin DBGrideh1. Canvas. The Font Color:=clred; DBGrideh1. DefaultDrawColumnCell (the Rect, DataCol, the Column, the State); The End; The End; CodePudding user response:
The reference 3 floor simonhehe response: cxGrid1DBTableView1. DataController. BeginUpdate;//update the data, interface lock, no response message Try CxGrid1DBTableView1. DataController. AppendRecord;//to add this Adoquery. Open;//if it is even a data source with the The finally CxGrid1DBTableView1. DataController. EndUpdate;//data update complete end; {there are below two, you can use according to the specific situation. CxGrid1DBTableView1. DataController. BeginFullUpdate; CxGrid1DBTableView1. DataController. EndFullUpdate; } I didn't see two events! Can you tell me where is is?