Ping: DataGridView ScrollBar Click Event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rex the Strange

    Ping: DataGridView ScrollBar Click Event

    Still looking for an answer, please:

    How can I hook into the click event of the directional buttons of a
    scrollbar on the DataGridView component? I tried this:

    public class ScrollDataGrid: DataGridView {
    new public ScrollBar VerticalScrollB ar {
    get { return base.VerticalSc rollBar; }
    }// ScrollBar;
    }// ScrollDataGrid;


    and this...


    ScrollDataGrid scroll_grid = (data_grid as ScrollDataGrid) ;
    scroll_grid.Ver ticalScrollBar. MouseDown += scroll_grid_mou sedown;


    and, surprise, surprise, it didn't work. I'm sure you can get the idea
    of what I'm trying to accomplish, here. Is it possible to do it this
    way or do I have to actually create a new component (god, I hope not).


    tia,
    rts

Working...