Mensaje
General information
Foro:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
ID de la conversación:
01449608
ID del mensaje:
01451094
Views:
39
>Trying to add a mmComboBox control to a maintenance form property page and having a really hard time getting it to show any items. This combobox shows items that are derived from a stored procedure ( the sp needs to join a few tables) that only has 2 columns. One for the [iid] that is stored in the primary BO foreign key column and the other is the [cName] that is displayed in the dropdown for selection. I have generated the Business Layer Entity object using the stored procedure as the DB item. Entered all the properites for the combobox to use the Entity object. The binding sources appear properly and I select that for the combo. When I try to select the BindingSourceDisplayMember shouldn't that allow me to select one of the columns in the BindingSource (which is the Entity tied to the stored proc)? Anyway when I run the app there are no errors but I have yet to get anything to show in the combo.
>
>Has anyone done this using the MM Business Layer Entities? If so can you shed some light on how to set this up?
>
>Thanks

Johnny,
I am wondering if you have made this too hard. Rather than creating a separate biz object for the stored procedure that joins multiple tables, I would create a method in a biz object for one of those tables that creates a dataset in a separate table for that biz object (this.FillDataSet(this.GetCurrentDataSet(), "StoredProcedureName", "TableName"). When you set up the binding properties for the combo box, the binding source would be the name of the biz object and the DisplayMember and ValueMember would each be referenced by TableName.ColumnName.
Linda
Linda Harmes
HiBit Technologies, Inc.
Previous
Next
Responder
Mapa
Ver