Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Textbox and DisplayMember in 2005?
 

Textbox and DisplayMember in 2005?

In VB.NET 2003 I could set up a textbox with one data field as the DataSource and one data field as the DisplayMember. This allowed me to have "lookup" fields... the actual datasource of the textbox might be numeric but what showed on the screen, the DisplayMember, was the text that the number referred to in another table.

I can't seem to find a way to do that in VB.NET 2005. My textbox shows the numeric value, but I can't get it to display a text value from another field that's linked to the numeric value. Any ideas?

Emma321  Tuesday, April 11, 2006 7:53 PM
Emma321 wrote:

In VB.NET 2003 I could set up a textbox with one data field as the DataSource and one data field as the DisplayMember.

I don't remember a TextBoxhas ever had these properties. Don't you confuse it with a ComboBox?

vkh75  Wednesday, April 12, 2006 11:52 AM

I have had times when the datasource is a column in the datatable and display member is not a column in the data table and would be determined at run time. I created my own custom combo box for that.

TkNeo  Wednesday, April 12, 2006 9:08 PM

You can use google to search for other answers

Custom Search

More Threads

• "Formatting" the data for display
• How to print table correct DataGrid? Help please for newbie!
• Autocomplete combo in a data grid.
• How do I catch 'System.Data.NoNullAllowedException' exception?
• Combobox initially loads with the id not the name
• Usre controls
• DataGrid Binding
• Bound a control to a datasource when the control is the editing control of a column in a datagridview
• Data Grid
• Adding, Saving information with BindingSource