CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2003
    Posts
    10

    First Row property of MSFlexGrid is not there. any equivalent?

    Hi,

    We have project developed in VB 4 in which Microsoft Grid Control (grid32.ocx) has been used. In the code they used the line

    Grid1.firstrow +1

    We are now in the necessity to migrate from grid32.ocx to MSflex grid control. so, now i would like to know what is the equivalent property on MS flexgrid. Firstrow property is not available on MSFlexgrid.


    Pls. do help me in finding an equivalent property.

    Suresh.

  2. #2
    Join Date
    Jun 2003
    Location
    Planet Earth
    Posts
    186
    ' Header row
    MSFlexGrid1.Row = 0
    MSFlexGrid1.Col = 0 through whatever

    Grid1.firstrow +1 is now MSFlexGrid1.Row = 1

  3. #3
    Join Date
    Jan 2002
    Location
    Quebec/Canada
    Posts
    124
    If you want the number of the first row shown in the flexgrid (excluding fixed rows), you can simply use the .TopRow property

  4. #4
    Join Date
    Jun 2003
    Posts
    10

    Problem solved

    Thank you very for trying to help me out. But what i have found is that firstrow property is not existing in that old MS grid control also. Since the code got compiled i thought it is there with the old grid. later my investigation revealed that even if we use some invalid method on that old grid it doesn't through an error while compilation. And the method i am trying to migrate is never used. So, i have commented out that piece of code and the code got compiled properly with the new grid. With this my problem is solved.
    Last edited by sureshgade; August 27th, 2003 at 01:10 AM.

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