Home > DeveloperSection > Forums > DataGridView blinks while refreshing using Windows C#
Lady Bird Johnson
Lady Bird Johnson

Total Post:20

Posted on    October-16-2013 6:43 AM

 C# C# 

 1 Reply(s)
 4514  View(s)
Rate this:
After refreshing datagridview, I lost focus on selected cells and random text blinks, Why? Please help me out!

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 this

            SBind.DataSource = DTable;


C G E Mannerheim
C G E Mannerheim

Total Post:29

Posted on    October-16-2013 7:32 AM

You can Try this:


SBind.DataSource = DTable;



You can also try enabling the DoubleBuffered of your grid like this:

typeof(Control).GetProperty("DoubleBuffered", BindingFlags.NonPublic | BindingFlags.Instance).SetValue(dataGridView1, true, null);

Don't want to miss updates? Please click the below button!

Follow MindStick