CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Posts
    6

    Scroll MSFlexFrid

    I want to scroll MS Flex Grid by code. how it is possible. suppose a grid is having 1000 rec. and after searching a record i want to set focus on that row.



  2. #2
    Join Date
    Feb 2000
    Location
    Kansas
    Posts
    49

    Re: Scroll MSFlexFrid

    This is the easiest way to scroll through the rows as you are searching through them that I know of anyway, assuming that you only have one column.


    Dim r as Integer

    With MSFlexGrid1
    for r = 1 to .Rows - 1
    .Row = r
    .TopRow = r
    next r
    End With
    MsgBox r




    To select the focus on a row all you do is:
    .Row = r
    .Setfocus




    although I wouldn't reccomend scrolling through the list as you search it. If you had say 1000 rows to search through it may cause the flexgrid to flicker quite a bit. Hope this helps you out.


  3. #3
    Join Date
    Oct 2002
    Location
    in front of computer
    Posts
    28

    thanks comrade

    thanks for the posting and reply...i have similar problem which I've found your posting helpful..
    thank to both of you..

    any update on this?

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