Objective Grid: Turning off row headers

Article ID: 354
Last updated: 07 Jun, 2018
Article ID: 354
Last updated: 07 Jun, 2018
Revision: 3
Views: 2718
Posted: 12 Jan, 2001
by Meltreger B.
Updated: 07 Jun, 2018
by Meltreger B.

Problem


I don't want row headers.  How can I turn them off?


Cause



Action


You can either set the width of the row header column to 0, or simply hide the row header column.  Either will work.

// Set width of row header column to 0
SetColWidth(0, 0);

// Hide the row header column
HideCols(0, 0);

Also, you may want to call:

GetParam()->EnableTrackColWidth(GX_TRACK_DEFAULT | GX_TRACK_NOTHEADER);

so that the user doesn't get a resize cursor.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 354
Last updated: 07 Jun, 2018
Revision: 3
Views: 2718
Posted: 12 Jan, 2001 by Meltreger B.
Updated: 07 Jun, 2018 by Meltreger B.

Others in this category