Sabrecat

I have run into a particularly irritating problem and I am hoping that there is a simple solution.

I have a couple of DataGridViews on tabs in a tab control. The DataGridViews have a mix of Check boxes and text cells in them. The Datasources are pointing to tables in a strongly typed dataset. In one case I have a non-Databound column ( a check box ) and in the other grid all fields are databound. The problem that I am seeing is that my column ordering is not staying the way I put it. Something that either I or VS 2005 is doing is putting all the checkbox fields at the very front ( far left ) of the datagrid.

This gets very frustrating as it happens on the grids regardless of whether or not I happen to be actively working on them in VS. More importantly though there is the strong possibility that I will yet again get my columns reordered for me just prior to a release and the client will get it that way.

Anyone have any clue why this may be happening



Re: Windows Forms Designer DataGridView, CheckBox fields and Strongly Typed datasets....

Sabrecat

A little more information. It appears to be happening when ever I build the application in VS.





Re: Windows Forms Designer DataGridView, CheckBox fields and Strongly Typed datasets....

dpuza

This keeps happening to me too. However, I am not using strongly typed datasets. It's so frustrating! I want to know what's causing my columns to keep getting moved around without my permission so that I have to keep fixing them all the time!





Re: Windows Forms Designer DataGridView, CheckBox fields and Strongly Typed datasets....

dpuza

It seems like you can prevent the columns from being reordered by closing the [Design] window of the problem .cs file when you build, especially after making a change to the grid.  Not the best workaround but it has saved me some frustration.  I don't know what corrupts these projects but I have only seen this happen with check box columns.  I can't reproduce the bug in a new project.

 





Re: Windows Forms Designer DataGridView, CheckBox fields and Strongly Typed datasets....

Sabrecat

Im now seeing this happen with a Datagridview that has no check boxes but instead has a dropdown cell and a couple of button cells.

Does the VS design team know about this issue Its not earth shattering by any means but it is annoying and it does take some time to reset all the fields back to the way that they are supposed to be.





Re: Windows Forms Designer DataGridView, CheckBox fields and Strongly Typed datasets....

dpuza

I found a couple bug reports about this on Microsoft's feedback site but they were not looking into it because they were not able to reproduce the issue...