SmartDataBrowse - Support for ExtendedAutoDrag
 
Forums / SmartComponent Library - Developer Forum / SmartDataBrowse - Support for ExtendedAutoDrag

SmartDataBrowse - Support for ExtendedAutoDrag

3 posts, 1 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    14 Dec 2019
    Link to this post
    I am working on DragDrop rows from one grid to another. I have this working in an UltraGrid just fine, I then tried using a SmartDataBrowser but no luck. It appears that when you call EnableMultiSelect on the SmartDataBrowse it will set the Tow SelectTypeRow to Extended. Since we use an OspreyDataBrowser on all our forms that inherits from SmartDataBrowser we decided to OVERRIDE the following methods;

    SetMultiSelection
    SetGridReadOnly

    and add support for ExtendedAutoDrag.

    This now works but just once. When the form opens I can select multiple rows. However, after the initial selection of rows once the selection is cleared I can no longer select multiple rows. The SelectTypeRow appears to still be set to ExtendedAutoDrag but it just does not work. I have searched the SCL code for SelectTypeRow and do not see anywhere else that this may be getting reset.

    Am I missing something?
  2. Mike Fechner
    Mike Fechner avatar
    342 posts
    Registered:
    14 Sep 2016
    Answered
    15 Dec 2019 in reply to Roger Blanchard
    Link to this post
    Have you tried to set the Browser's DeselectRowsOnActivate property to FALSE ?
  3. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    15 Dec 2019 in reply to Mike Fechner
    Link to this post
    Thanks Mike...that was it!!
3 posts, 1 answered