Link to home
Start Free TrialLog in
Avatar of Member_2_99151
Member_2_99151

asked on

Can I span cells in an AdvStringGrid in Delphi?

Hi all,

I need to display a table in a Delphi application where some of the cells are merged (to represent row groups mainly).
How do I achieve this?
If the AdvStringGrid is not possible are there any components that will work better?

Thanks,

James
Avatar of Emmanuel PASQUIER
Emmanuel PASQUIER
Flag of France image

I don't think you could have merged cells (like in excel) with AdvStringGrid, but you could achieve something close in functionality if not in visual appearance, that is grouping rows based on the value of one column

see here for complete description and code sample :
http://www.tmssoftware.com/site/asg14.asp
ASKER CERTIFIED SOLUTION
Avatar of Member_2_99151
Member_2_99151

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok, excellent ! I intend to buy TMS components one day, they sure looks great. For the moment I only rely on web documentation, so it's difficult to tell what it can do. Let me know if merging cells is working as you wish
Avatar of Member_2_99151
Member_2_99151

ASKER

Hi,
Sorry, forgot to update this post!
What I suggested above appears to work fine. There is a redraw issue on the control which behaves a little strangly when scrollbars are being used, but the overall result is fine.
This works fine