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? Quote 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. Quote 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 )????? Quote 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. Quote 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 Quote 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. Quote 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 Quote 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 Quote 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.