|
-
May 5th, 2006, 11:02 AM
#1
Thread Starter
Fanatic Member
Flexgrid , Change Merge and change Backcolor Cells
Hi
I need Merge some cells in flexgrid , after change backcolor from cells merged
tks
-
May 5th, 2006, 12:41 PM
#2
Re: Flexgrid , Change Merge and change Backcolor Cells
Example..
VB Code:
'Select mergefree, it could also be restricted ro rows or columns..
MSFlexGrid1.MergeCells = flexMergeFree 'or.. flexMergeRestrictColumns or flexMergeRestrictRows
'Merge cells in row 1..
MSFlexGrid1.MergeRow(1) = True
'Important! just cells with the same content (text) will be merged
MSFlexGrid1.TextMatrix(1, 1) = "Hey!"
MSFlexGrid1.TextMatrix(1, 2) = MSFlexGrid1.TextMatrix(1, 1)
MSFlexGrid1.TextMatrix(1, 3) = MSFlexGrid1.TextMatrix(1, 1)
About the cell backcolor, change fillstyle to flexfillRepeat, make a selection using .row, .rowsel, .col, .colsel, then use MSFlexgrid.CellBackColor = SomeColor, and finally change fillstyle back to flexfillSingle
Last edited by jcis; May 5th, 2006 at 12:50 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|