Avoid Flickering of Datagridview in .NET
Private Sub SetDoubleBuffering(ByVal pDataGridview As DataGridView)
GetType(Control).InvokeMember("DoubleBuffered", Reflection.BindingFlags.SetProperty Or
Reflection.BindingFlags.Instance Or Reflection.BindingFlags.NonPublic, Nothing,
pDataGridview, New Object() {True})
End Sub
Thank you for sharing... But it's better if there's an explanation about this.
ReplyDelete