An attempt was made to set the value of a cell that is not yet associated with a grid. – is the Error Code
following the DataBinding Example, I followed the same type of pattern in my databinding of the grid. The error occurs on gridControl1.DataSource = null;
I’m using the DataView as the DataSource, when the LeavingEdit fires I’m updating my DataSource and bring back the updated view to rebind to the gridcontrol. So, I’m using the pattern from the example(DataBinding). Inside the ResetGrid method, the call to set gridControl1.DataSource = null; gives the error explained above.
Imported from legacy forums. Posted by Diddy (had 2841 views)
there is a bug in the 2.0 version of the grid. To do many of the things you see in the example they provide, you have to do them during the applicationidle event. Things like, rebinding, resetting events that pertain to the grid, resetting editors for the grid columns, etc. Just add the code you have above to that the method that handles the application idle event.
Imported from legacy forums. Posted by Diddy (had 3804 views)