Is it pausing, but you don’t see your red color appear in the cell? Try this:
dataGridView1.Rows[x1].Cells[y1].Style.BackColor = System.Drawing.Color.Red;
dataGridView1.Refresh();
System.Threading.Thread.Sleep(1000);
More Related Contents:
- Is there no way to Wait in C#?
- How to make the script wait/sleep in a simple way in unity
- How to asynchronously wait for x seconds and execute something then?
- Wait some seconds without blocking UI execution
- Wait for a while without blocking main thread
- Constructor that takes 1 argument
- Using .NET, how can you find the mime type of a file based on the file signature not the extension
- How to display indirect data in Jqgrid
- Compression/Decompression string with C#
- How to create bitmap from byte array?
- Excel Interop – Efficiency and performance
- How to find if a native DLL file is compiled as x64 or x86?
- Null or default comparison of generic argument in C#
- How to fix a opacity bug with DrawToBitmap on WebBrowser Control?
- c# covariant return types utilizing generics
- What is the effect of AsEnumerable() on a LINQ Entity?
- Understanding .AsEnumerable() in LINQ to SQL
- Can a class library have an App.config file?
- How do you center your main window in WPF?
- Rx: How can I respond immediately, and throttle subsequent requests
- String Interpolation With Variable Content in C#
- What is the default behavior of Equals Method?
- Argument Exception “Item with Same Key has already been added”
- How do I get the list of keys in a Dictionary?
- Methods inside enum in C#
- Access Query string parameters with no values in ASP.NET
- Install Windows Service created in Visual Studio
- C#: How to open Windows Explorer windows with a number of files selected
- Prevent users from resizing the window/form size
- Best way to Bulk Insert from a C# DataTable