codeb Posted March 5, 2012 Share Posted March 5, 2012 I try to color cell in UniDBGrid whit Event OnDrawColumnCell and get error "Property and method UniDBGrid1DrawColumnCell are not compatible"... Is any solution to color cell in DBGrid????? Sample? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 5, 2012 Administrators Share Posted March 5, 2012 I try to color cell in UniDBGrid whit Event OnDrawColumnCell and get error "Property and method UniDBGrid1DrawColumnCell are not compatible"... Is any solution to color cell in DBGrid????? Sample? Code sample please. Link to comment Share on other sites More sharing options...
codeb Posted March 5, 2012 Author Share Posted March 5, 2012 When I click on Events I get this message (no code... just try to add )????? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 5, 2012 Administrators Share Posted March 5, 2012 When I click on Events I get this message (no code... just try to add )????? Is there any previously defined OnDrawColumnCell procedure in your code. Link to comment Share on other sites More sharing options...
codeb Posted March 5, 2012 Author Share Posted March 5, 2012 Is there any previously defined OnDrawColumnCell procedure in your code. No... pic in attach Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 5, 2012 Administrators Share Posted March 5, 2012 Please attach your PAS and DFM file. Link to comment Share on other sites More sharing options...
codeb Posted March 5, 2012 Author Share Posted March 5, 2012 Here is...Main.pas and Main.dfm ips.zip Link to comment Share on other sites More sharing options...
codeb Posted March 5, 2012 Author Share Posted March 5, 2012 I find .... now is all ok.. Thanks Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 5, 2012 Administrators Share Posted March 5, 2012 procedure TMainForm.UniDBGrid1DrawColumnCell(Sender: TObject; ACol, ARow: Integer; var Value: string; Column: TUniDBGridColumn; Attribs: TUniCellAttribs); begin Attribs.Color:=clRed; end; Your project already contains a draw event which is created in a older version of uniGUI . Event format has changed in 0.88.0. Remove this event and add it again. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now