General information
Title:
Custom bound column properties not keeping
Help! Code snippet for my custom textboxcolumn:
public class wgridtextboxcolumn : DataGridViewTextBoxColumn
{
private string wfieldname;
public string wFieldName
{
get { return (this.wfieldname); }
set { this.wfieldname = value; }
}
}
When I edit the Property wFieldName in the Edit Columns popup window, click OK, the value I set does not keep, nor does it get written to window.Designer.cs, it's just:
this.myfield.wFieldName = null;
I've changed the code to be: private string wfieldname = "" but then it just uses "" instead of null.
I'm using VS 2008.
How do I get the properties to remain? This has stopped me cold because I need to set custom properties. Thanks in advance.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only