Click here to Skip to main content
15,905,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: I'm looking for instructions to convert a demo project into a class Pin
OriginalGriff7-Jan-15 8:58
mveOriginalGriff7-Jan-15 8:58 
GeneralRe: I'm looking for instructions to convert a demo project into a class Pin
turbosupramk37-Jan-15 9:12
turbosupramk37-Jan-15 9:12 
GeneralRe: I'm looking for instructions to convert a demo project into a class Pin
OriginalGriff7-Jan-15 10:09
mveOriginalGriff7-Jan-15 10:09 
AnswerRe: I'm looking for instructions to convert a demo project into a class Pin
V.7-Jan-15 10:35
professionalV.7-Jan-15 10:35 
GeneralRe: I'm looking for instructions to convert a demo project into a class Pin
Mycroft Holmes7-Jan-15 13:42
professionalMycroft Holmes7-Jan-15 13:42 
GeneralRe: I'm looking for instructions to convert a demo project into a class Pin
turbosupramk38-Jan-15 4:58
turbosupramk38-Jan-15 4:58 
GeneralRe: I'm looking for instructions to convert a demo project into a class Pin
V.8-Jan-15 10:04
professionalV.8-Jan-15 10:04 
QuestionBinding one to many (bindingsource / datasource ) Pin
rudo327-Jan-15 4:52
rudo327-Jan-15 4:52 
Hello all,
may I ask you for a suggestion where can I find some information about following topic?
I am trying to do something like this:
In MS SQL I have two tables Objects, Attributes. I have relation one to many via object_id (one object can have multiple attributes).
I would like to have a listbox with Objects and a e.g. gridview with attributes for selected object. How can I achieve that?

So far I created a m_DataSet [DataSet] which contains records returned by inner join select.
I have a m_ObjectsBS [BindingSource]. I filled binding source as this:
m_ObjectsBS.DataSource = m_DataSet.Tables[0].DefaultView.ToTable(true, "ObjectName"); (in order to have distinct names there).
I filled listbox as this:
C#
m_lbxObjects.DataSource = m_ObjectsBS;
m_lbxObjects.ValueMember = "ObjectName";
m_lbxObjects.DisplayMember = "ObjectName";


To fill a gridview I can use m_DataSet.Tables[0] as for a new binding source and it is done?
Thanks a lot and I am sorry if I am creating a duplicated thread.
Questionenums Pin
Gilbert Consellado6-Jan-15 21:21
professionalGilbert Consellado6-Jan-15 21:21 
AnswerRe: enums Pin
V.6-Jan-15 21:46
professionalV.6-Jan-15 21:46 
GeneralRe: enums Pin
Gilbert Consellado6-Jan-15 22:15
professionalGilbert Consellado6-Jan-15 22:15 
AnswerRe: enums Pin
OriginalGriff6-Jan-15 22:49
mveOriginalGriff6-Jan-15 22:49 
AnswerRe: enums Pin
lukeer6-Jan-15 22:55
lukeer6-Jan-15 22:55 
GeneralRe: enums Pin
OriginalGriff6-Jan-15 23:17
mveOriginalGriff6-Jan-15 23:17 
GeneralRe: enums Pin
lukeer7-Jan-15 1:41
lukeer7-Jan-15 1:41 
GeneralRe: enums Pin
OriginalGriff7-Jan-15 2:08
mveOriginalGriff7-Jan-15 2:08 
GeneralRe: enums Pin
lukeer7-Jan-15 20:55
lukeer7-Jan-15 20:55 
GeneralRe: enums Pin
Gilbert Consellado9-Jan-15 13:07
professionalGilbert Consellado9-Jan-15 13:07 
AnswerRe: enums Pin
BillWoodruff9-Jan-15 15:08
professionalBillWoodruff9-Jan-15 15:08 
GeneralRe: enums Pin
Gilbert Consellado9-Jan-15 16:34
professionalGilbert Consellado9-Jan-15 16:34 
Questionlogin from read file.txt Pin
techker26-Jan-15 12:27
techker26-Jan-15 12:27 
AnswerRe: login from read file.txt Pin
Dave Kreskowiak6-Jan-15 14:03
mveDave Kreskowiak6-Jan-15 14:03 
GeneralRe: login from read file.txt Pin
techker26-Jan-15 14:29
techker26-Jan-15 14:29 
GeneralRe: login from read file.txt Pin
Richard Andrew x646-Jan-15 15:28
professionalRichard Andrew x646-Jan-15 15:28 
GeneralRe: login from read file.txt Pin
techker26-Jan-15 15:57
techker26-Jan-15 15:57 

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.