Thank you for contacting us.
Currently, this is how the designer code is being generated and there is no way to work around it if you are going to use the designer. The only possible workaround except ignoring/suppressing the warning is to add your columns at runtime. To avoid putting the SuppressMessage attribute, you can suppress a warning for an entire project by going to Project -> Properties -> Build and putting the warning numbers in the Suppress warnings
Let me know if you have any further questions.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>