Recent

Author Topic: (SOLVED) DBGrids error  (Read 3029 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2259
    • Lazarus and Free Pascal italian community
(SOLVED) DBGrids error
« on: December 27, 2010, 03:06:15 pm »
Who can explain to me why if I have a form with a TDBGrid into TPageControl and restructured in the TDBGrid another TPageControl me this is wrong! The offending line is in red.

Error:  

Project project1.exe raisedexception class 'External: SIGSEGV'.

Into DBGrids unit.

function TCustomDBGrid.ColumnEditorStyle(aCol: Integer; F: TField): TColumnButtonStyle;
begin
  result := cbsAuto;
  if Columns.Enabled then
   result := ColumnFromGridColumn(aCol).ButtonStyle;

  result := DefaultEditorStyle(result, F);
end;      
« Last Edit: December 27, 2010, 03:14:44 pm by xinyiman »
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2259
    • Lazarus and Free Pascal italian community
Re: DBGrids error
« Reply #1 on: December 27, 2010, 03:14:24 pm »
Solution: Do not use the property. TDBGrids Clear the object and then try to repopulate it.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018