Results 1 to 6 of 6

Thread: [RESOLVED] DataGrid usability

  1. #1

    Thread Starter
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    Resolved [RESOLVED] DataGrid usability

    Hello!

    I was wondering if anyone already try to make a datagrid act like a itemlist in matters of scrolling rows using the finger. It is very annoying to use the vertical bar sometimes.
    I know, i could use the itemlist with custom items to create the same effect but i was just wondering if there was some kind of solution for this annoying control so called DataGrid.

    thanks
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: DataGrid usability

    Take a look at Mirabyte controls - do exactly what you need, or BeeMobile4.Net
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    Re: DataGrid usability

    There must be a way of doing this without 3rd party controls!
    Thanks for your answer though

    Edit: BeeMobile4.Net and Mirabyte don't offer grids as far as i know. Plus, they have a poor or none optimization for Windows mobile 6.1 and are extremely slow for big amounts of displayed data.
    Last edited by TDQWERTY; May 28th, 2011 at 05:26 AM.
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

  4. #4
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: DataGrid usability

    Sorry - resco for your grid controls.

    Why not use mousedown and mouseup events, and use keypreview, and scroll programatically?
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  5. #5

    Thread Starter
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    Re: DataGrid usability

    Hi Pete, i couldn't find a way to scroll programatically...that's why
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

  6. #6

    Thread Starter
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    Re: DataGrid usability

    Finally managed how to programatically scroll a datagrid with the help of several websites code samples.

    Here's a test implementation of the code below and a custom up/down column:
    VB Code:
    1. Imports System.Reflection
    2.  
    3. Class ScrollDataGrid
    4.     Inherits DataGrid
    5.     Dim fi As Reflection.FieldInfo
    6.  
    7.     Public Function ScrollTo(ByVal ivalue As Integer) As Boolean
    8.         Try
    9.             fi = Me.GetType().GetField("m_sbVert", BindingFlags.NonPublic Or BindingFlags.GetField Or BindingFlags.Instance)
    10.             CType(fi.GetValue(Me), VScrollBar).Value = ivalue
    11.             Me.CurrentRowIndex = ivalue
    12.         Catch ex As Exception
    13.             '
    14.         End Try
    15.     End Function
    16.  
    17. End Class
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by TDQWERTY; Jun 10th, 2011 at 10:21 AM.
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width