Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSFlexiGrid Header

Status
Not open for further replies.

rann

Programmer
Sep 13, 2001
86
US
Hi,
I want to have multiple Column Header in MSFlexiGrid is it possible.

For example when you put data into a flexi grid you display it as follows.

CustID -- CustName
1 -- Mik
2 -- Tim
3 -- Dan
4 -- Rann

But i want it as follows

CustID -- CustName
1 -- Mike
2 -- Tim
Total -- Percentage
2 -- 20
CustID -- CustName
3 -- Dan
4 -- Rann
Total -- Percantage
2 -- 45

(or is it possible to move/change the single header as we keep entering data)

Any help or links to examples/Tutorials helpfull.

Thanks in Advance.
Rann.

 
1st point ... Msflex I grid s/b MSflexGrid

I am here because I spelt it wrong also


As for Headings when you create your SQL call then try SELECT Custid AS Customer , mk as Mikael

or perhas you could try changing column 0 like this

MSFlexGrid1.TextMatrix(0, 0) = "CUST NAME"
MSFlexGrid1.TextMatrix(0, 1) = "ANOTHER"
MSFlexGrid1.TextMatrix(0, 2) = "WHO AM I"

other option

For COLUMNS

strtemp = " ; JAMES| CHARLIE| MARIA "
MSFlexGrid1.formatString= strtemp

for ROWS ( NOTE ; <-------- )

strtemp = &quot; ; JAMES| CHARLIE| MARIA &quot;
MSFlexGrid1.formatString= strtemp
for ROWS ( NOTE ; <-------- )


and I believeyou can combine them

strtemp1 = &quot; JAMES| CHARLIE| MARIA &quot;
strtemp2 = strtemp1 & &quot; ; JAMES| CHARLIE| MARIA &quot;

MSFlexGrid1.formatString= strtemp2

There is Help on MSDN


Then search for MSFLEXGRID
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top