Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom bound column properties not keeping
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Custom bound column properties not keeping
Miscellaneous
Thread ID:
01296378
Message ID:
01296378
Views:
67
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
Map
View

Click here to load this message in the networking platform