Flickering during updates to Controls in WinForms (e.g. DataGridView)

前端 未结 8 1859
悲哀的现实
悲哀的现实 2021-01-05 10:43

In my application I have a DataGridView control that displays data for the selected object. When I select a different object (in a combobox above), I need to update the grid

8条回答
  •  旧巷少年郎
    2021-01-05 11:25

    Sounds like you want double-buffering:

    http://www.codeproject.com/KB/graphics/DoubleBuffering.aspx

    Although this is mainly used for individual controls, you can implement this in your Windows Forms control or Form.

提交回复
热议问题