Custom Windows DataGrid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob The Builder

    #1

    Custom Windows DataGrid

    I have a custom-built datagrid for windows forms. I overrode the
    scrollbars in it because I wanted to draw my own (basically, they're
    skinned). As a result, I handle all scroll events and calls. I also
    have a row-selector column as the first column, and that needs to stay
    visible. Think Excel. However, if a user clicks a cell that is all
    the way to the right and goes off the grid a bit, then the entire grid
    shifts, including my row-selector column. I can't find any event that
    seems to coincide with this. Yes, CurrentCellChan ged fires, but by
    then it's too late to prevent the grid from scrolling.
    So, does anyone know a good way to make a column freeze (this is a
    windows forms application), and how can I prevent the grid from auto
    scrolling? Thanks

Working...