Page 1 of 1

Changing an xBrowse column header.

PostPosted: Wed Sep 01, 2010 8:00 pm
by HunterEC
Guys:

How can I change an xBrowse column header after the xBrowse has been created ? For example, when the user left clicks on the column header, the browse changes index order and I want to display some sort of column header indicator as to specify on which field order the xBrowse is displaying the records. Thank you.

Re: Changing an xBrowse column header.

PostPosted: Wed Sep 01, 2010 9:27 pm
by nageswaragunupudi
XBrowse automatically shows an UpArrow or DownArrow on the column header that is sorted. That is the standard indication which column is sorted and whether sorted in ascending or descending order.

Normally it should not necessary for the programmer to do anything to show this indication.

In any case you can change the column header at runtime with this code:
oCol:cHeader := "New Name"
oBrw:Refresh()

Re: Changing an xBrowse column header.

PostPosted: Thu Sep 02, 2010 6:09 am
by HunterEC
Nageswaragunupudi:

My xBrowse does not show the arrows that you mentioned. What I'm doing wrong ? Thank you.