My code: -
If I am trying to refresh various data in my datagridview, I lost my focus on selected cells and random text blinks. Why this happens? In other apps I don't see this problem, so I can fix this, but how? I refresh data by thisSBind.DataSource = DTable;
SBind.ResetBindings(false);
Anonymous User
16-Oct-2013You can Try this:
dataGridView1.SuspendLayout()
SBind.DataSource = DTable;
SBind.ResetBindings(false);
dataGridView1.ResumeLayout(true);
You can also try enabling the DoubleBuffered of your grid like this:
typeof(Control).GetProperty("DoubleBuffered", BindingFlags.NonPublic | BindingFlags.Instance).SetValue(dataGridView1, true, null);