471,315 Members | 2,253 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,315 software developers and data experts.

Stopping wincode generation?

I have a custom datagrid. When I put it onto a form, all sorts of
wincode is generated for the grid. This causes conflicts. For
example:

// dataGridTableStyle8
//
this.dataGridTableStyle8.DataGrid = this.dggrid;
this.dataGridTableStyle8.HeaderForeColor =
System.Drawing.SystemColors.ControlText;
this.dataGridTableStyle8.MappingName = "default";

I already define a dataGridTableStyle in the custom grid called
default. Is there a way to stop this wincode from being generated?

Thanks,
Brett

Jan 27 '06 #1
1 1180
You need to read up on attributes that control design-time behaviour,
in particular:

BrowsableAttribute
DesignerSerializationVisibilityAttribute
etc.

There are lots of articles on how to control code generation by the
Designer. Try some of these out:

http://msdn.microsoft.com/library/de...etpropbrow.asp

http://msdn2.microsoft.com/en-us/library/ms171726.aspx

http://msdn.microsoft.com/library/de...ustcodegen.asp

Jan 27 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

51 posts views Thread by Mudge | last post: by
8 posts views Thread by Max M | last post: by
reply views Thread by Rasmus Fogh | last post: by
9 posts views Thread by Hayato Iriumi | last post: by
3 posts views Thread by Eddy Ilg | last post: by
2 posts views Thread by Brett Romero | last post: by
31 posts views Thread by eliben | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.