codeb Posted March 5, 2012 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
Administrators Farshad Mohajeri Posted March 5, 2012 Administrators 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
codeb Posted March 5, 2012 Author Posted March 5, 2012 When I click on Events I get this message (no code... just try to add )????? Quote
Administrators Farshad Mohajeri Posted March 5, 2012 Administrators 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
codeb Posted March 5, 2012 Author Posted March 5, 2012 Is there any previously defined OnDrawColumnCell procedure in your code. No... pic in attach Quote
Administrators Farshad Mohajeri Posted March 5, 2012 Administrators Posted March 5, 2012 Please attach your PAS and DFM file. Quote
Administrators Farshad Mohajeri Posted March 5, 2012 Administrators 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
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.