Click here to Skip to main content
15,907,236 members
Home / Discussions / C#
   

C#

 
AnswerRe: OleDbDataReader - reading order Pin
Luc Pattyn30-May-11 5:43
sitebuilderLuc Pattyn30-May-11 5:43 
GeneralRe: OleDbDataReader - reading order Pin
Islorvat30-May-11 6:36
Islorvat30-May-11 6:36 
AnswerRe: OleDbDataReader - reading order Pin
Luc Pattyn30-May-11 6:39
sitebuilderLuc Pattyn30-May-11 6:39 
QuestionHow to Create Rectangle Pin
Anubhava Dimri30-May-11 1:27
Anubhava Dimri30-May-11 1:27 
AnswerRe: How to Create Rectangle Pin
OriginalGriff30-May-11 3:15
mveOriginalGriff30-May-11 3:15 
AnswerRe: How to Create Rectangle Pin
Abhinav S30-May-11 4:22
Abhinav S30-May-11 4:22 
GeneralRe: How to Create Rectangle Pin
Anubhava Dimri31-May-11 19:23
Anubhava Dimri31-May-11 19:23 
QuestionCombobox displayMembers with .dbml objects Pin
grmihel230-May-11 0:27
grmihel230-May-11 0:27 
Are there any genius way to make Display and value member object related to the object in the combobox?
As you can see in the following code, I'm using IEnumrable of Email objects to add into the combobox, and the Email are an entity object related to the LinQ (.dbml) object mapped from the database (which means each object itself contains value fields from the database).

comboBox_n1.Items.Clear();
comboBox_n1.Items.AddRange(_controller.getEmailList().ToArray<Email>());
comboBox_n1.Sorted = true;
comboBox_n1.SelectedIndex = -1;


Right now it shows an object string like: 'MyApp.Email' for each object in the list.
Before now, I have made a ToString() in the .dbml code, for each object which ofcause works, but it ain't a sustainable solution since it will dissapear each time I made a change to the datamapper.

So are there any way to auto generate these display members??
AnswerRe: Combobox displayMembers with .dbml objects Pin
phil.o30-May-11 1:13
professionalphil.o30-May-11 1:13 
GeneralRe: Combobox displayMembers with .dbml objects Pin
grmihel230-May-11 2:09
grmihel230-May-11 2:09 
GeneralRe: Combobox displayMembers with .dbml objects Pin
Dave Kreskowiak30-May-11 4:16
mveDave Kreskowiak30-May-11 4:16 
GeneralRe: Combobox displayMembers with .dbml objects Pin
grmihel230-May-11 21:35
grmihel230-May-11 21:35 
GeneralRe: Combobox displayMembers with .dbml objects Pin
Dave Kreskowiak31-May-11 1:54
mveDave Kreskowiak31-May-11 1:54 
GeneralRe: Combobox displayMembers with .dbml objects Pin
phil.o2-Jun-11 22:05
professionalphil.o2-Jun-11 22:05 
QuestionHow to pass .net (C#) string to unmanaged C++ dll? Pin
Tesic Goran29-May-11 22:05
professionalTesic Goran29-May-11 22:05 
AnswerRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Luc Pattyn29-May-11 22:40
sitebuilderLuc Pattyn29-May-11 22:40 
GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? [modified] Pin
Tesic Goran29-May-11 22:59
professionalTesic Goran29-May-11 22:59 
AnswerRe: How to pass .net (C#) string to unmanaged C++ dll? [modified] Pin
Luc Pattyn29-May-11 23:28
sitebuilderLuc Pattyn29-May-11 23:28 
GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Tesic Goran29-May-11 23:37
professionalTesic Goran29-May-11 23:37 
AnswerRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Luc Pattyn29-May-11 23:49
sitebuilderLuc Pattyn29-May-11 23:49 
GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? [modified] Pin
Tesic Goran30-May-11 0:00
professionalTesic Goran30-May-11 0:00 
AnswerRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Luc Pattyn30-May-11 0:22
sitebuilderLuc Pattyn30-May-11 0:22 
GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Tesic Goran30-May-11 0:26
professionalTesic Goran30-May-11 0:26 
GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
Tesic Goran30-May-11 0:57
professionalTesic Goran30-May-11 0:57 
GeneralRe: How to pass .net (C#) string to unmanaged C++ dll? Pin
MicroVirus30-May-11 4:24
MicroVirus30-May-11 4:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.