RE: listbox and Datagrid, 2 tables, and a relationship
From: M K (mark_at_nospamcenturycolor.com)
Date: 04/05/04
- Previous message: Sijin Joseph: "Re: Help On DataBinding"
- In reply to: Steven Cheng[MSFT]: "RE: listbox and Datagrid, 2 tables, and a relationship"
- Next in thread: Steven Cheng[MSFT]: "RE: listbox and Datagrid, 2 tables, and a relationship"
- Reply: Steven Cheng[MSFT]: "RE: listbox and Datagrid, 2 tables, and a relationship"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Apr 2004 11:16:06 -0700
It was rather simple, instead of this:
Me.lbProgs.DataSource = Me.dsPrograms
Me.lbProgs.DisplayMember = "Programs.ProgDesc"
Me.lbProgs.ValueMember = "Programs.ProgramID"
My datasource was Me.dsPrograms.Tables("Programs") and I simply used the field name for the members.
One question remains. How do I keep a column from being shown in my datagrid. It currently shows the ProgramID, which I would like to keep behind the scenes. I am using VB btw.
- Previous message: Sijin Joseph: "Re: Help On DataBinding"
- In reply to: Steven Cheng[MSFT]: "RE: listbox and Datagrid, 2 tables, and a relationship"
- Next in thread: Steven Cheng[MSFT]: "RE: listbox and Datagrid, 2 tables, and a relationship"
- Reply: Steven Cheng[MSFT]: "RE: listbox and Datagrid, 2 tables, and a relationship"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|