User Profile
Collapse
-
I never quite figured it out but it seems to be when the grid is populated in the form load event the problem happens, so I populated the grid from the form shown event instead which works. It's not ideal as it takes a few seconds to do the binding and to display it properly but it's the best I could come up with. -
Hi - I already created the form with a Form load event and it didn't work, so I tried it this way instead. It's the same result either way. I have another form that does the same thing - loads a grid from the Form load event (which doesn't work) and reloads from a button click event (which works). Been going on for over a week now, starting to crack me up!Leave a comment:
-
DataGridView properties not being set when called from Form Load
I'm having a really strange issue with the DataGridView control in a VS2008 / .NET 3.5 winforms project. I have a simple form with a grid. In the form constructor I call a function to bind the grind to a DataTable, and then loop through the rows setting the background colour of the last cell to LightGrey and the cell itself to read-only if the column value is true. After the form finishes loading the code didn't work i.e. the cells are not set to...
No activity results to display
Show More
Leave a comment: