-2

When I'm loading data to DataGridView it load all the data successfully but it show the rows data by blurring. When I click on row then row data display properly. In that case I have to click / select each DataGridViewRow to display the row data.

Cam somebody help with this issue?

I'm using Visual Studio 2017 with VB.NET.

enter image description here

enter image description here

Sebastian Brosch
  • 42,106
  • 15
  • 72
  • 87
  • Welcome to StackOverflow. You need to show your code. Please have a look at: https://stackoverflow.com/help/minimal-reproducible-example – daShier Oct 18 '19 at 02:11
  • I'm certainly not in favour of images for no good reason but if this is a visual issue then a visual medium is required, i.e. show us a screen shot. – jmcilhinney Oct 18 '19 at 03:56
  • Make you app DPIAware: [How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?](https://stackoverflow.com/a/13228495/7444103) – Jimi Oct 18 '19 at 08:29
  • @jmcilhinney I have added2 images. First image is displayed when I open the windows form that contain datagridview. This datagrid view does not show the datagrid row. It show the picture of backgroundform or its parent form. Second Image is all about when I scroll down the datagridview data it start making it's text blurr. Thanks – user11389946 Oct 19 '19 at 10:24
  • @Jimi I have added 2 images. Can you please have a look and suggest me what to do. Is this any kind of setting or any code which I have to implement in my window app. The link you provided couldn't help me as I'm not much aware about the DPI etc. If this is any kind of code need to implement, please write. – user11389946 Oct 19 '19 at 10:26

1 Answers1

0

To avoid this problem, you must always clean the grid before uploading new data

Dim dgv As DataGridView = YourDataGridHere
dgv.Columns.Clear()
dgv.Rows.Clear()

'Now you can populate them with new data
'dgv.Columns.Add("col1", "col1")
'dgv.Columns.Add("col2", "col2")
'dgv.Columns.Add("col3", "col3")
'dgv.Rows.Add("pippo", "pluto", "paperino")
G3nt_M3caj
  • 2,497
  • 1
  • 14
  • 16