TControlGrid lazarus / 31-LCL ---------------------------------------------------------------------- serbod · 2016-08-27 21:57 I need grid with scrollbars, where cells contains visual control (label, image, edit, frame..) aligned to alClient. Now i use TScrollBox with custom alignment of nested controls, it's works, but not handy. TFlowPanel is handy, but it's not grid and don't have scrolling. Is here any solution or ideas, how to make scrollable grid of controls, with changeable column width, rows sorting and filtering, virtual rows (filled only when visible)? ---------------------------------------------------------------------- Phil · 2016-08-27 22:11 Did you try TStringGrid? ---------------------------------------------------------------------- serbod · 2016-08-27 23:13 Quote from: Phil on August 28, 2016, 12:11:06 amDid you try TStringGrid? Yes, and many other grids too - VirtualTreeView, BergSoft NextGrid, TMS AdvGrids.. They have fixed-type columns with limited range of stored controls. I just need to insert controls into grid cells at design-time, so controls will be aligned automatically. If grid contains only 1 column, it will be list. If contain only 1 row - it works just as TControlBar. ---------------------------------------------------------------------- Phil · 2016-08-27 23:30 I guess I don't understand what you're trying to do. If all of those different grids can't handle your needs, then you'll need to write your own. Perhaps if you describe what you're trying to accomplish, not in terms of a grid but in terms of the UI. (There's also the Orpheus grid, which I ported years ago. It worked pretty good on Windows.) ---------------------------------------------------------------------- JD · 2016-08-28 06:56 Try the TKGrid which is part of the KControls suite http://tkweb.eu/en/delphicomp/ It has a demo that shows how to place several different types of controls in the TKGrid. Maybe that will suit your purpose. ---------------------------------------------------------------------- serbod · 2016-08-29 08:43 Quote from: JD on August 28, 2016, 08:56:48 amTry the TKGrid which is part of the KControls suite http://tkweb.eu/en/delphicomp/ Maybe that will suite your purpose. Thanks for suggestion! TKGrid basically is advanced grid of strings or custom drawn cells, not nested controls. Some controls can be nested as inplace editor in OnEdit event. But impossible to place controls in grid at design time, as TFlowPanel. ---------------------------------------------------------------------- patyi · 2016-08-29 21:27 Try this link : http://www.mwasoftware.co.uk/db-control-grid ---------------------------------------------------------------------- tk · 2016-09-01 18:02 QuoteI need grid with scrollbars, where cells contains visual control (label, image, edit, frame..) aligned to alClient.I doub't there is a grid control capable of this. Anyway, why would you need this? I think it is better (and much faster) to just paint some content to grid cells and edit the content via one inplace editor at a time. ---------------------------------------------------------------------- serbod · 2016-09-02 11:17 Quote from: tk on September 01, 2016, 08:02:38 pmQuoteI need grid with scrollbars, where cells contains visual control (label, image, edit, frame..) aligned to alClient.I doub't there is a grid control capable of this. Anyway, why would you need this? I think it is better (and much faster) to just paint some content to grid cells and edit the content via one inplace editor at a time. Look at this fourum page. It contains list of repaeted elements - posts. Every post have userinfo side, title, body, footer. How can you do same thing in LCL? If use direct canvas drawing, it will take very many pages (not even lines!) of code and many time to tune positions, sizes, etc.. But now is post-visual programming age! Just place labels, images and buttons on TFrame! And add that frame on TFlowPanel for every post. It will not only looks like exactly as designed, but every item works without inplace editors, global event handlers and other crutches.