Results 1 to 40 of 1667

Thread: VBFlexGrid Control (Replacement of the MSFlexGrid control)

Hybrid View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,742

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Update released.

    Massive performance boost for Get .Clip property. (the larger the range the bigger the performance difference)

    The string concatenation was done previously by using small buffer chunks putting together when the buffer chunks reach a certain size.

    However, compared to the VB6 poor man's string builder from wqweto this is light years of speed difference.

    Just as a hint. A very large grid took me before 16 seconds to get the .Clip string. Now it takes just 1 full second.

    EDIT: using now a string array instead of a collection for the poor man's string builder for some extra speed gain.
    Last edited by Krool; May 26th, 2020 at 08:09 AM.

  2. #2
    Lively Member
    Join Date
    Oct 2016
    Posts
    115

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    is it possible add to SelectionMode it should behave like a ListBox (FlexSelectionModeListBox)

    thanks

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,742

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by Semke View Post
    is it possible add to SelectionMode it should behave like a ListBox (FlexSelectionModeListBox)
    Yes, I thought of something like this also. (kind of multi-selection)
    Thanks for bringing this back up.

    The vsFlexGrid does have such a feature, right ?

    So you don't determine the selection via Row and RowSel but rather via a dedicated IsSelected(Row As Long) property.

    How does it behaves there? I mean a ListBox can be set to different selection styles also.
    Also is the focus rect "free" or aligned like on "ByRow" ? What do .RowSel report? Is it returning always same as .Row or a "disabled alias" of -1 ?

    Maybe I shall make a SelectioMode "ListBox" (similar to "ByRow") and "FreeListBox" (similar to "FreeByRow")
    Just thoughts..

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