no color in datagridview in mdi form

  • Thread starter Thread starter Kayıhan
  • Start date Start date
K

Kayıhan

when i put my colored datagridview in a mdi form,
i can't see colors. If i put it in a indıvudual form instead of mdi form, i
can see colors.
i dont want to implement coloring code in paint event becouse it triger
itself non-stop.
 
Kayıhan said:
when i put my colored datagridview in a mdi form,
i can't see colors. If i put it in a indıvudual form instead of mdi form, i
can see colors.
i dont want to implement coloring code in paint event becouse it triger
itself non-stop.


i want to explain my issue a little bit. Here some code,i put it down.

create a form ,make it mdiform.
create another form,drag on it a datagridview.

in Load event of first form,create a instance of second form,send itself as
a instractor parameter so second form assign it as a mdiparent.
in secon form's load event; fill datragridview and change backcolor of one
of the rows. When you run code; you will see the color change doesnt occur.
if you run second form induvually ;you can see the color you changed.
 
Back
Top