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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restrict Merging in MSFlexGrid (VB6)

Status
Not open for further replies.

tigertechie2

Programmer
Mar 28, 2003
6
GB
Hi
I want to restrict Merging in MSFlexGrid. I have a grid
set up with columns of data which I want to merge as below:

Product Dept Price CostPrice
1001 1 10.00 4.90
1002 1
1003 2 10.00 4.90
1004 2
1005 3 11.00 4.90

So the columns Price and CostPrice are merged together for row 1001 and row 1002, and also for row 1003 and 1004. Therefore I want to really be able to merge the columns by the values in the Dept column.

my code is
msflexgrid.MergeCells = flexMergeRestrictColumns
msflexgrid.mergecol(Price) = True
msflexgrid.mergecol(CostPrice) = True

And I am getting merging for all identical values for the two columns:

Product Dept Price CostPrice
1001 1
1002 1
1003 2 10.00 4.90
1004 2
1005 3 11.00 4.90


Any help is gratefully accepted

Regards

Tigertechie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top