Highlighted
Absent Member.
Absent Member.
1260 views

[archive] first column of grid always visible (Hscroll)

[Migrated content. Thread originally posted on 22 June 2007]

I have a (paged) grid with about 30 columns and I want the first column to be displayed all the time. So when I scroll to the right I want to still see the first column. Is this possible?

Thanks
Andre
0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] first column of grid always visible (Hscroll)

It can be done, but you have a lot of programming ahead of you to do it. Consider using two grid,s one a single column and the other grid the rest of the data. That way the scroll only work on columns you don't care what happens.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] first column of grid always visible (Hscroll)

Set the ROW-HEADING property to TRUE (if are you using AcuBench?) and it will happen for you. For Example:-              05 SS02-Gd-Docket-Lines, Grid,
                 COL 3.20, LINE 39.00, LINES 26.00 CELLS,
                 SIZE 62.80 CELLS,
                 ADJUSTABLE-COLUMNS, 3-D, CENTERED-HEADINGS,
                 COLUMN-HEADINGS,
                 DATA-COLUMNS (1, 5, 21, 27, 87, 91, 100, 108, 117, 121,
                 135, 143, 152, 153, 155, 157, 159, 173, 181, 189, 197),
                 DISPLAY-COLUMNS (1, 5, 19, 27, 52, 58, 66, 74, 82, 88,
                 102, 110, 118, 120, 123, 126, 129, 143, 151, 159, 167),
                 ALIGNMENT ("R", "L", "L", "L", "C", "R", "R", "R", "U",
                 "U", "R", "R", "U", "U", "U", "U", "U", "R", "R", "R",
                 "R"),
                 DATA-TYPES ("Z(4)", "X(16)", "X(6)", "X(60)", "X(4)",
                 "9(9)", "9(8)", "9(11)", "X(4)", "X", "X", "X", "X",
                 "X", "X", "X", "X", "X", "X", "X", "X"),
                 SEPARATION (5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
                 5, 5, 5, 5, 5, 5, 5),
                 DIVIDER-COLOR 1, DRAG-COLOR 1,
                 HSCROLL, ID IS 144, NO-TAB, [B]ROW-HEADINGS[/B],
                 TILED-HEADINGS, VPADDING WSSVI-GRID-VPADDING, VSCROLL,
                 EVENT PROCEDURE 1011-SS02-Grid-Event-Procedure.


See section 5.11.1 Grid: Common Properties of the User Interface Programming manual. You shouldn't need to do any coding at all 🙂

Cheers,

Ian
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] first column of grid always visible (Hscroll)

ok it works.

thanks
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.