How can I activate a scrollbar in a datagrid

Jim Jupiter 66 Reputation points
2021-07-28T09:45:18.157+00:00

Hi

I have a datagrid - and it will be populated dynamically in code - it works

But before I have 10 oder more rows the scrollbar did not appear in the datagrid

Is it possible to show the deactivated or inactive scollbar in datagrid from start?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,778 questions
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 117.6K Reputation points
    2021-07-28T11:06:32.39+00:00

    Try this:

    <DataGrid VerticalScrollBarVisibility="Visible" . . . . />


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.