I make one component in Delphi 10 Seattle. My component is one panel contains one TDBGrid (from TCustomDBGrid) and one TEdit Controls. When i put my component to form, everything is fine, if i don't change Grid Columns. but when i changed bounded DBGrid Columns, an error happens on run time with message: "Error reading TColumn.MyGrid.Expanded: Property MyGrid.Expanded dos not exist. ..." For found error, i opened form as text and see this codes:
MyGrid.Columns = <
item
MyGrid.Expanded = False
MyGrid.FieldName = 'Sid'
MyGrid.Visible = True
end
item
MyGrid.Expanded = False
MyGrid.FieldName = 'UserName'
MyGrid.Visible = True
end>
FilterDataSource = DataSource1
Thus, my component not worked correctly.