Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Databinding combobox to non-existent column
Message
De
11/05/2005 08:08:18
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Databinding combobox to non-existent column
Divers
Thread ID:
01012780
Message ID:
01012780
Vues:
72
Hi,

I get a NullReferenceException (NRE) if I bind a mmComboBox's display column to a non-existent column.

Line of code : mmBindigStrategy.cs line 894 - 895.

// Get the original column name and save it
DataColumn col = ds.Tables[tableName].Columns[displayColumnName];
string origColName = col.ColumnName;

In my business object's SQL I have a concatinated column which I want to show in the combobox. I type in by hand the column name in the combobox's BindingSourceDisplayMember but as usual I misspell the column name :)

Cheers,

Andrew
Répondre
Fil
Voir

Click here to load this message in the networking platform