Click here to Skip to main content
15,881,089 members
Home / Discussions / C#
   

C#

 
AnswerRe: Accessing members of a class in an ArrayList Pin
Guffa6-Feb-08 10:28
Guffa6-Feb-08 10:28 
GeneralMS SQL 2005 Pin
s3rro6-Feb-08 8:59
s3rro6-Feb-08 8:59 
GeneralRe: MS SQL 2005 Pin
J$6-Feb-08 9:13
J$6-Feb-08 9:13 
GeneralRe: MS SQL 2005 Pin
Not Active6-Feb-08 9:17
mentorNot Active6-Feb-08 9:17 
AnswerRe: MS SQL 2005 Pin
Nouman Bhatti6-Feb-08 21:54
Nouman Bhatti6-Feb-08 21:54 
GeneralBinding to DataTable built from mutliple database tables Pin
polishprogrammer6-Feb-08 8:54
polishprogrammer6-Feb-08 8:54 
GeneralRe: Binding to DataTable built from mutliple database tables Pin
Gareth H6-Feb-08 9:29
Gareth H6-Feb-08 9:29 
GeneralRe: Binding to DataTable built from mutliple database tables Pin
polishprogrammer6-Feb-08 9:49
polishprogrammer6-Feb-08 9:49 
Thanks. Here's a piece of the SQL SELECT statement:

SELECT ServiceDetails.SerialNumber, ServiceDetails.ManuDate, ServiceDetails.Manufacturer, " +
"ServiceDetails.Customer, ServicDetails.GasType, " +
"SerialNumber.SerialNumber, SerialNumber.Manufacturer, SerialNumber.ManufacturerDate, " +
"SerialNumber.Owner, SerialNumber.GasType, " +
"FROM SerialNumber, ServiceDetails WHERE " +
"SerialNumber.SerialNumber=ServiceDetails.SerialNumber " +
"AND SerialNumber.Manufacturer=ServiceDetails.Manufacturer " +
"AND SerialNumber.ManufacturerDate=ServiceDetails.ManuDate " +
"ORDER BY SerialNumber.SerialNumber"

The databinding that causes the problem involves binding to, say, the Manufacturer field in the SerialNumber table due to the fact that the same field name exists in both tables. I need to qualify the name of the field, but am unsuccessful when trying it in a databinding context, such as:

this.cbManuSer.DataBindings.Add("SelectedValue", dtSer, "SerialNumber.Manufacturer");

If I bind controls to fields in the datatable filled by the SQL SELECT statement given above that have unique names (not belonging to both tables), the binding works fine, but qualifying the name by table doesn't work. I get the Child list for x not created.

There must be a piece I'm missing, but I could not find a discussion of this topic.
GeneralRe: Binding to DataTable built from mutliple database tables Pin
Gareth H6-Feb-08 11:34
Gareth H6-Feb-08 11:34 
GeneralRe: Binding to DataTable built from mutliple database tables Pin
polishprogrammer6-Feb-08 18:08
polishprogrammer6-Feb-08 18:08 
News.NET Reference Code Downloader For Debugging With Visual Studio 2005 Pin
Izzet Kerem Kusmezer6-Feb-08 8:36
Izzet Kerem Kusmezer6-Feb-08 8:36 
QuestionI am sorry if I am asking an abstract question; but I have a multithreaded question Pin
sameerhanda6-Feb-08 7:33
sameerhanda6-Feb-08 7:33 
GeneralRe: I am sorry if I am asking an abstract question; but I have a multithreaded question Pin
Jimmanuel6-Feb-08 8:00
Jimmanuel6-Feb-08 8:00 
GeneralRe: I am sorry if I am asking an abstract question; but I have a multithreaded question Pin
sameerhanda6-Feb-08 8:19
sameerhanda6-Feb-08 8:19 
GeneralRe: I am sorry if I am asking an abstract question; but I have a multithreaded question Pin
half-life6-Feb-08 8:44
half-life6-Feb-08 8:44 
GeneralRe: I am sorry if I am asking an abstract question; but I have a multithreaded question Pin
sameerhanda6-Feb-08 8:50
sameerhanda6-Feb-08 8:50 
GeneralRe: I am sorry if I am asking an abstract question; but I have a multithreaded question Pin
half-life6-Feb-08 8:53
half-life6-Feb-08 8:53 
GeneralEmbedding a control inside a toolbar Pin
sabrown1006-Feb-08 7:28
sabrown1006-Feb-08 7:28 
QuestionProgramattically creating new threads Pin
miles.smith6-Feb-08 7:04
miles.smith6-Feb-08 7:04 
GeneralRe: Programattically creating new threads Pin
led mike6-Feb-08 7:22
led mike6-Feb-08 7:22 
GeneralRe: Programattically creating new threads Pin
miles.smith6-Feb-08 7:25
miles.smith6-Feb-08 7:25 
GeneralRe: Programattically creating new threads Pin
Ennis Ray Lynch, Jr.6-Feb-08 7:32
Ennis Ray Lynch, Jr.6-Feb-08 7:32 
GeneralRe: Programattically creating new threads Pin
led mike6-Feb-08 7:41
led mike6-Feb-08 7:41 
GeneralRe: Programattically creating new threads Pin
miles.smith6-Feb-08 7:43
miles.smith6-Feb-08 7:43 
GeneralRe: Programattically creating new threads Pin
led mike6-Feb-08 8:28
led mike6-Feb-08 8:28 

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.