how to Use BMP image file for background of winform in c# -


i have winform , use image.bmp background of form , when run happened :

enter image description here

it working problem background of datagridview don't want see behind datagridview how can run form showing datagridview normally?

you need use loop , change color of each cell. after set datasource.

foreach (datagridviewrow row in yourdatagridview.rows)      {          row.defaultcellstyle.backcolor = color.white;      } 

Comments

Popular posts from this blog

c# SetCompatibleTextRenderingDefault must be called before the first -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -

c++ - Fill runtime data at compile time with templates -