WPF DataGrid is very slow to render

后端 未结 10 2010
我在风中等你
我在风中等你 2020-12-23 02:30

I have tried using both a customized DataGrid as well as the stock one in WPF. I have tried populating them manually as well as through bindings. In both cases they are sl

10条回答
  •  天涯浪人
    2020-12-23 02:40

    I have a Surface Pro 3 on which my datagrid, with about 200 rows and 10 columns, was really slow at scrolling, jerky and hesitant.

    I thought it was the network, but it was in fact the graphics card not being able to keep up with - wait for it - a drop shadow effect on the datagrid itself, even though the background of the control was set to a solid colour.

    I commented out the effect and it was 4-5 times faster.

    Hope this helps.

提交回复
热议问题