Results 1 to 2 of 2

Thread: Flexgrid , Change Merge and change Backcolor Cells

  1. #1

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Flexgrid , Change Merge and change Backcolor Cells

    Hi

    I need Merge some cells in flexgrid , after change backcolor from cells merged


    tks

  2. #2
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Flexgrid , Change Merge and change Backcolor Cells

    Example..
    VB Code:
    1. 'Select mergefree, it could also be restricted ro rows or columns..
    2.     MSFlexGrid1.MergeCells = flexMergeFree 'or.. flexMergeRestrictColumns or flexMergeRestrictRows
    3.    
    4.     'Merge cells in row 1..
    5.     MSFlexGrid1.MergeRow(1) = True
    6.    
    7.     'Important! just cells with the same content (text) will be merged
    8.     MSFlexGrid1.TextMatrix(1, 1) = "Hey!"
    9.     MSFlexGrid1.TextMatrix(1, 2) = MSFlexGrid1.TextMatrix(1, 1)
    10.     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
  •  



Click Here to Expand Forum to Full Width