Is there any particular reason that anyone can think of why when a datagrid view loads via the forms onload event, all the color assignments to cells and text are ignored? But if the datagrid view is reloaded via a button's onclick event there's no problem.

This has just cropped up while I was working on a seemingly unrelated bit of code.

I've stepped into the code on all the lines where I've changed the color of cells and text and it runs through it every time. I've even copied and pasted the entire page from a working backup and the problem's still there.