Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Datagridview bug : columns re-appear

$
0
0
Hello all,

I have a strange bug in Visual Studio 2008.

I have developed a complete application with lots of forms containing DatagridViews .
The DatagridViews all have their property "DataSource" pointing to a BindingSource which is in the components tray of the form.
The BindingSources have their property "DataSource" pointing to a class. They are loaded with data on the form Load event.

In most cases, I use the "Edit Columns" fonction of the DatagridView to remove unnecessary columns.

When opening certain forms (not all of them) in Design Mode, I can see that the columns which have been "removed" have now reappeared !!
This happens only on some datagridviews, not all of them.
So, every time I open the form in Design mode, I have to "Remove" columns all over again !

I have not been able to understand what causes this behavior

Please help, I'm getting crazy !


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>