Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 15th, 2006, 05:47 AM
Registered User
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Merging in flex

hi,
In flex , i want to merge the particular column data for 1st and 2nd row. but i don't want to merge the same column data for the remaining
rows. i've given an example, where the 4th column data of 1st two rows can be merged as "Address" where its data "INDIA" should not be merged for the remaining two rows.
is it possible in flex.
can anyone help me in this, if it is possible.

with flex
   .FixedRows = 0
   .FixedCols = 0

   .MergeCells = flexMergeRestrictColumns

   .MergeRow(0) = True
   .MergeCol(0) = True
   .MergeCol(4) = True ' i want the heading of this column alone to be merged not the data "INDIA"

   .TextMatrix(0, 0) = "Sl. No."
   .TextMatrix(0, 1) = "Employee Details"
   .TextMatrix(0, 2) = "Employee Details"
   .TextMatrix(0, 3) = "Employee Details"
   .TextMatrix(0, 4) = "Address"

   .TextMatrix(1, 0) = "Sl. No."
   .TextMatrix(1, 1) = "NAME"
   .TextMatrix(1, 2) = "Age"
   .TextMatrix(1, 3) = "Gender"
   .TextMatrix(1, 4) = "Address"

   .TextMatrix(2, 0) = "1"
   .TextMatrix(2, 1) = "priya"
   .TextMatrix(2, 2) = "20"
   .TextMatrix(2, 3) = "F"
   .TextMatrix(2, 4) = "INDIA"

   .TextMatrix(3, 0) = "2"
   .TextMatrix(3, 1) = "priya"
   .TextMatrix(3, 2) = "20"
   .TextMatrix(3, 3) = "F"
   .TextMatrix(3, 4) = "INDIA"

thank u
R.S.Shanmuga Priya.
 
Old December 15th, 2006, 02:04 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

use flexMergeRestrictAll instead of flexMergeRestrictColumns

Regards,
Marco
 
Old December 16th, 2006, 01:54 AM
Registered User
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks macro, even then the 4th column's heading and data are not merged.
i want the heading "Address" to be merged wherein
i don't want the data "INDIA" to be merged.

Thanku






Similar Threads
Thread Thread Starter Forum Replies Last Post
Flex Triggers cbyrne123 Oracle 1 October 20th, 2008 02:54 AM
VS Flex Grid Version 7 abdulqadirpk VB Components 0 December 27th, 2006 07:16 AM
flex grid [email protected] General .NET 0 January 12th, 2006 01:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.