Datagrid scrollbar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hugh Janus

    #1

    Datagrid scrollbar

    Hi,

    I have a datagrid that is not showing a vertical scrollbar even though
    it has more rows than displayed. I cannot find the property to set
    this, so after googling, i found this link:

    Build faster with enterprise-ready, AI-powered UI components including blazing fast grids, charts, schedulers, and editors. Get PDF, Word, and Excel document SDKs for Blazor, React, Angular, JavaScript, and .NET MAUI.


    My problem is that I don't know how to use it! Could someone please
    explain how to implement this in my code? The simpler the better!!

    TIA
    Hugh

  • Ken Tucker [MVP]

    #2
    Re: Datagrid scrollbar

    Hi,

    Whenever I resize the rows in the datagrid I had that happen. To
    overcome it try resizing the grid to get the scroll bars to show. I usually
    reduce the grid size by one pixel then reset it to the orginal size.

    Ken
    ------------------
    "Hugh Janus" <my-junk-account@hotmail .com> wrote in message
    news:1148752266 .762715.317950@ i39g2000cwa.goo glegroups.com.. .[color=blue]
    > Hi,
    >
    > I have a datagrid that is not showing a vertical scrollbar even though
    > it has more rows than displayed. I cannot find the property to set
    > this, so after googling, i found this link:
    >
    > http://www.syncfusion.com/FAQ/Window...44c.aspx#q876q
    >
    > My problem is that I don't know how to use it! Could someone please
    > explain how to implement this in my code? The simpler the better!!
    >
    > TIA
    > Hugh
    >[/color]


    Comment

    • Hugh Janus

      #3
      Re: Datagrid scrollbar


      Ken Tucker [MVP] wrote:[color=blue]
      > Hi,
      >
      > Whenever I resize the rows in the datagrid I had that happen. To
      > overcome it try resizing the grid to get the scroll bars to show. I usually
      > reduce the grid size by one pixel then reset it to the orginal size.
      >
      > Ken[/color]

      Thanks Ken, but I have possibly hundreds (or maybe even thousands of
      rows) so resizing them is not an option. Any idea on how to implement
      that example to force the scrollbar for VB.NET 2003?

      Hugh

      Comment

      • Ken Tucker [MVP]

        #4
        Re: Datagrid scrollbar

        Hugh,

        The syncfusion code will create an control that inherits from
        datagrid that allways shows the vertical scroll bar. You would need to
        replace the datagrid with the new control.

        Another option is resize the datagrid after you set its datasource to
        force it to recalculate if the scroll bars are needed.

        Ken
        -----------------------

        "Hugh Janus" wrote:
        [color=blue]
        >
        > Ken Tucker [MVP] wrote:[color=green]
        > > Hi,
        > >
        > > Whenever I resize the rows in the datagrid I had that happen. To
        > > overcome it try resizing the grid to get the scroll bars to show. I usually
        > > reduce the grid size by one pixel then reset it to the orginal size.
        > >
        > > Ken[/color]
        >
        > Thanks Ken, but I have possibly hundreds (or maybe even thousands of
        > rows) so resizing them is not an option. Any idea on how to implement
        > that example to force the scrollbar for VB.NET 2003?
        >
        > Hugh
        >
        >[/color]

        Comment

        Working...