Information générale
Catégorie:
Codage, syntaxe et commandes
Thanks a los Vlad.
Your advica have been very helpful.
Regards
Oscar
>Hi!
>
>First of all,
>Take a look to LeftColumn property. It represents scrolling - what column is currently leftmost. Synchronizing of horizontal scrolling of 2 grids would look like using a few "DoScroll" method calls for another grid till LeftColumn property of both grids equal.
>
>Next step is placing call of synchronizing routine in appropriate events. It is, of course, Scrolled event. In addition, you should call it in the AfterRowColChange event - when grid gets focus by keyboard, or cell is changed, grid is also auto-scrolled into the current active cell to display it.
>
>Optional step - when columns order changes, or column size changes, you require to do the same change for another grid. These are "Column.Resize" and "Column.Move" events, as well as appropriate column properties "ColumnOrder" and "width".
>
>
>
>>Hi all
>>
>>I need to know when a grid has scrolled Left or Right in order to synchronize it with another grid right below.
>>
>>The scrolled event only works when clicking on the scroll bar or when moving a scroll box.
>>
>>I also need to know which column the first column shown is, after a left or right scroll.
>>
>>Thanks in advance for any help.
>>
>>Oscar Corte
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement