Results 1 to 1 of 1

Thread: FlexGrid Merge Row and BackColorSel

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2003
    Posts
    233

    FlexGrid Merge Row and BackColorSel

    Hi

    Why when there is a merge in flexgrid the highlight of BackColorSel not showing

    This is ok if there is no merge row
    Code:
          With FG1
             ' Row and Col properties must be set before RowSel and ColSel
             .Col = 1 ' start selection in this column
             .Row = 3 ' start selection in this row
             .ColSel = .Cols - 1 ' end selection in this column
             .RowSel = .Rows - 2 ' end selection in this row
             .SetFocus
          End With
    When i use merge row then the highligt of BackColorSel not showing but still active

    Code:
    Private Sub Form_Load()
    
    .MergeCells = flexMergeRestrictRows
    .MergeRow(0) = True
    
    End Sub
    AS MSDN say

    When MergeCells is set to a value other than 0 (Never), selection highlighting is automatically turned off. This is done to speed up repainting, and because selection of ranges containing merged cells may lead to unexpected results.

    Link
    http://msdn.microsoft.com/en-us/libr...(v=vs.60).aspx

    How to bypass this
    Last edited by jamal464; Jun 17th, 2011 at 03:12 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