KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I generate all my columns in a subclassed DataGridView programmatically. However Visual Studio 2008 keeps reading my constructor class (which populates a DataTable with empty content and binds it to the DataGridView ) and generates code for the columns in the InitializeComponent method - in the process setting AutoGenerateColumns to false . This causes errors in design-time compilation which are only solved by manually going into the design code and deleting all references to these autogenerated columns. How can I stop it doing this? I have tried: Making the control 'Frozen' Setting the DataGridView instantiated object protected (suggested in a previous post which referred to this site )
Tags (comma-separated)
Save Edits
Cancel