DataGrid unwanted scrolling!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: DataGrid unwanted scrolling!

  1. #1
    Dexter Guest

    DataGrid unwanted scrolling!


    I have a datagrid with 6 columns and which is just wide enough to display
    all information without the need to scroll. When the last column is sellected
    however it still scrolls!
    I have in the dataGrid scroll event set cancel = true, and have at design
    time in the property pages in the splits tab set scrollbars to 0-dbgNone.

    Anyone got any ideas!

    Many thanks Dexter

  2. #2
    Brent Guest

    Re: DataGrid unwanted scrolling!


    "Dexter" <dexterh@meyeruk.com> wrote:
    >
    >I have a datagrid with 6 columns and which is just wide enough to display
    >all information without the need to scroll. When the last column is sellected
    >however it still scrolls!
    >I have in the dataGrid scroll event set cancel = true, and have at design
    >time in the property pages in the splits tab set scrollbars to 0-dbgNone.
    >
    >Anyone got any ideas!
    >
    >Many thanks Dexter



  3. #3
    Brent Guest

    Re: DataGrid unwanted scrolling!


    "Dexter" <dexterh@meyeruk.com> wrote:
    >
    >I have a datagrid with 6 columns and which is just wide enough to display
    >all information without the need to scroll. When the last column is sellected
    >however it still scrolls!
    >I have in the dataGrid scroll event set cancel = true, and have at design
    >time in the property pages in the splits tab set scrollbars to 0-dbgNone.
    >
    >Anyone got any ideas!
    >
    >Many thanks Dexter


    Dexter,
    Make sure that the TOTAL width of your columns is 1 pixel less than the total
    width of the grid minus the width of the vertical scrollbar. If the horizontal
    scrollbar is present this will always occur.

    Brent


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center