CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Beginner

  1. #1
    Join Date
    Jul 2001
    Posts
    15

    Beginner

    Is it possible to make any row or column of a MSFlexgrid as Fixed?
    Usually when we specify fixed rows/columns as 2 the first 2 columns or rows will be fixed. Can I make 10th row as fixed instead?



  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Beginner


    'No, but you can use this trick
    'put a msflexgrid on your form and a commandbutton
    private Sub Command1_Click()
    Dim intCol as Integer
    With MSFlexGrid1
    .Rows = 15
    .Cols = 3
    .Row = 9
    .GridLines = .GridLinesFixed
    for intCol = 1 to 2
    .Col = intCol
    .CellBackColor = .BackColorFixed
    .CellForeColor = .ForeColorFixed
    next intCol
    End With
    End Sub




    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood,
    Bruno Paris and all the other wonderful people who made and make Codeguru
    a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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

Featured