Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom bound column properties not keeping
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Custom bound column properties not keeping
Divers
Thread ID:
01296378
Message ID:
01296378
Vues:
68
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
Fil
Voir

Click here to load this message in the networking platform