Click here to Skip to main content
16,006,475 members
Home / Discussions / C#
   

C#

 
GeneralRe: Recursion to find an XML element Pin
Steven D. Foster31-Dec-08 4:14
Steven D. Foster31-Dec-08 4:14 
AnswerRe: Recursion to find an XML element Pin
Steven D. Foster30-Dec-08 16:55
Steven D. Foster30-Dec-08 16:55 
AnswerRe: Recursion to find an XML element Pin
Christian Graus30-Dec-08 18:01
protectorChristian Graus30-Dec-08 18:01 
GeneralRe: Recursion to find an XML element Pin
Steven D. Foster31-Dec-08 4:07
Steven D. Foster31-Dec-08 4:07 
AnswerRecursion = BAD to find an XML element Pin
Steven D. Foster31-Dec-08 4:45
Steven D. Foster31-Dec-08 4:45 
QuestionHow do i go about this... do i create a DataBind / DataSet ??? [modified] Pin
cobalt-rose30-Dec-08 12:02
cobalt-rose30-Dec-08 12:02 
AnswerRe: How do i go about this... do i create a DataBind / DataSet ??? Pin
Not Active30-Dec-08 13:23
mentorNot Active30-Dec-08 13:23 
AnswerRe: How do i go about this... do i create a DataBind / DataSet ??? Pin
Mycroft Holmes30-Dec-08 14:45
professionalMycroft Holmes30-Dec-08 14:45 
Also you need to split your app.

Shove all the DB connection stuff into another class so the connection is built only once and is local to the DB class.
Create a method for each of your load requirements that return a table (this is exactly the same code as you are using except it returns table[0])

This will start you on a better designed app that will be MUCH more readable and supportable.

Consider using stored procs instead of SQL strings (arguments for/against this are endless).

If, as Mark suggest, you want a parent child then you can move both tables into a dataset, create the relations and bind the dataset to the DGV.




Never underestimate the power of human stupidity
RAH

GeneralRe: How do i go about this... do i create a DataBind / DataSet ??? Pin
cobalt-rose1-Jan-09 13:25
cobalt-rose1-Jan-09 13:25 
QuestionApp.config Pin
s196675m30-Dec-08 11:34
s196675m30-Dec-08 11:34 
AnswerRe: App.config Pin
vaghelabhavesh30-Dec-08 13:08
vaghelabhavesh30-Dec-08 13:08 
QuestionDesign time collection problem Pin
kanchoette30-Dec-08 10:16
kanchoette30-Dec-08 10:16 
AnswerRe: Design time collection problem Pin
Wendelius30-Dec-08 10:44
mentorWendelius30-Dec-08 10:44 
GeneralRe: Design time collection problem Pin
kanchoette30-Dec-08 11:28
kanchoette30-Dec-08 11:28 
GeneralRe: Design time collection problem Pin
Wendelius30-Dec-08 11:41
mentorWendelius30-Dec-08 11:41 
GeneralRe: Design time collection problem Pin
kanchoette30-Dec-08 11:51
kanchoette30-Dec-08 11:51 
GeneralRe: Design time collection problem Pin
Wendelius30-Dec-08 11:56
mentorWendelius30-Dec-08 11:56 
QuestionReceiving Email prob using c# Pin
Abdul Rahman Hamidy30-Dec-08 9:20
Abdul Rahman Hamidy30-Dec-08 9:20 
AnswerRe: Receiving Email prob using c# Pin
EliottA30-Dec-08 14:27
EliottA30-Dec-08 14:27 
GeneralRe: Receiving Email prob using c# Pin
Abdul Rahman Hamidy30-Dec-08 15:05
Abdul Rahman Hamidy30-Dec-08 15:05 
GeneralRe: Receiving Email prob using c# Pin
Christian Graus30-Dec-08 18:02
protectorChristian Graus30-Dec-08 18:02 
GeneralRe: Receiving Email prob using c# Pin
Abdul Rahman Hamidy30-Dec-08 18:44
Abdul Rahman Hamidy30-Dec-08 18:44 
QuestionHow to find/replace a hard coded connection string in a binary file? Pin
Ryan Neil Shaw30-Dec-08 7:43
Ryan Neil Shaw30-Dec-08 7:43 
GeneralRe: How to find/replace a hard coded connection string in a binary file? Pin
Luc Pattyn30-Dec-08 7:48
sitebuilderLuc Pattyn30-Dec-08 7:48 
GeneralWow... any File I/O experts around Pin
Ryan Neil Shaw30-Dec-08 8:05
Ryan Neil Shaw30-Dec-08 8:05 

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.