Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Databinding combobox to non-existent column
Message
From
11/05/2005 08:08:18
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Databinding combobox to non-existent column
Miscellaneous
Thread ID:
01012780
Message ID:
01012780
Views:
70
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
Reply
Map
View

Click here to load this message in the networking platform