---
title: "DataGridView blinks while refreshing using Windows C#"  
description: "DataGridView blinks while refreshing using Windows C#"  
author: "Lady Bird Johnson"  
published: 2013-10-16  
updated: 2013-10-16  
canonical: https://www.mindstick.com/forum/1685/datagridview-blinks-while-refreshing-using-windows-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# DataGridView blinks while refreshing using Windows C#

After refreshing [datagridview](https://www.mindstick.com/articles/607/working-with-datagridview-in-vc-sharp), I lost [focus](https://yourviews.mindstick.com/audio/1251/how-music-can-improve-your-focus-and-mood) on selected cells and [random](https://www.mindstick.com/forum/33419/generating-random-numbers-in-objective-c) [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) blinks, Why? Please help me out!\

#### My code: -

If I [am trying](https://answers.mindstick.com/qa/36834/which-two-programming-languages-should-i-master-in-if-i-am-trying-to-get-into-google-or-facebook) to [refresh](https://www.mindstick.com/forum/12865/how-to-refresh-dropdownlist-but-keep-old-selected-value-json) various [data](https://www.mindstick.com/articles/13050/salesforce-aiming-to-dominate-predictive-analytics-with-data-science) in my datagridview, I **lost my focus on selected cells** and **random text blinks**. Why this happens? In other [apps](https://www.mindstick.com/articles/12842/6-apps-for-writers-that-are-actually-worth-downloading) I don't see this [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic), so I can fix this, but how? I refresh data by this

SBind.DataSource = DTable;

SBind.ResetBindings(false);

## Replies

### Reply by Anonymous User

You 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);


---

Original Source: https://www.mindstick.com/forum/1685/datagridview-blinks-while-refreshing-using-windows-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
