Information générale
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement