Page 1 of 1

How we can merge XBROWSE Column header ?

PostPosted: Thu Nov 22, 2012 8:29 am
by shri_fwh
Hi ,

How we can merge XBROWSE column header ? as given below.
------------------------------
| Quantity |
| Bill | Free |
-------------------------------

column 1 is Bill
column 2 is Free

However I want to display "Quantity" for both column.

Thanks
Shridhar

Re: How we can merge XBROWSE Column header ?

PostPosted: Thu Nov 22, 2012 12:06 pm
by ukoenig
Shridhar,

there is a nice sample : xbgrpsum.prg

Image

@ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;
AUTOCOLS ;
HEADERS 'Product', 'USA', 'Canada', 'UK', 'Spain' ;
ARRAY aData CELL LINES NOBORDER FASTEDIT FOOTERS

AEval( oBrw:aCols, { |o| o:nEditType := EDIT_GET } )

WITH OBJECT oBrw
// Make Groups
:SetGroupHeader( 'Americas', 2, 3, oBold )
:SetGroupHeader( 'Europe', 4, 5, oBold )
:lAllowColReGroup := .t. // columns can be moved accross groups
// Group totals
:SetGroupTotal( 'Americas', 'Total' )
:SetGroupTotal( 'Europe', 'Total' )
// Grand Total
:SetGroupTotal( { 'Americas_Total', 'Europe_Total' }, 'Grand' + CRLF + 'Total', AGGR_SUM, oBold )
END

Best Regards
Uwe :lol:

Re: How we can merge XBROWSE Column header ?

PostPosted: Thu Nov 22, 2012 5:35 pm
by shri_fwh
Hi Uwe ,

Thanks a lot for your support. Its working :D

Thanks
Shridhar