我想设置msflexgrid的标题该怎么做呢,我用
grdKostenPosition.TextMatrix(0, 0) = "Id"
设置,但是键盘和鼠标都可以选到改行.

解决方案 »

  1.   

    用这个试试,
    是这个意思吗
    Private Sub Form_Load()
        With grd
            .Rows = 20
            .Cols = 10
    '        .SelectionMode = flexSelectionFree
            .FocusRect = flexFocusNone
            .HighLight = flexHighlightNever
        End With
    End Sub
      

  2.   

    Private Sub Form_Load()
    With MSFlexGrid1
    .Rows = 5
    .Cols = 3
    .FixedRows = 1
    .FixedCols = 0
    .TextMatrix(0, 0) = "ID"
    .TextMatrix(0, 1) = "ID"
    .TextMatrix(0, 2) = "ID"
    .MergeCells = flexMergeRestrictRows
    .MergeRow(0) = True
    .Row = 0
    .Col = 0
    .CellAlignment = 3
    End With
    End Sub