Click here to Skip to main content
15,899,474 members
Home / Discussions / Database
   

Database

 
Questiongenerating database Pin
D.N.1-Feb-06 4:09
D.N.1-Feb-06 4:09 
AnswerRe: generating database Pin
Colin Angus Mackay1-Feb-06 5:18
Colin Angus Mackay1-Feb-06 5:18 
GeneralRe: generating database Pin
D.N.1-Feb-06 5:49
D.N.1-Feb-06 5:49 
GeneralRe: generating database Pin
Colin Angus Mackay1-Feb-06 5:50
Colin Angus Mackay1-Feb-06 5:50 
Questiondate acessing problm in msssql server 2000 Pin
Vipin.d31-Jan-06 18:50
Vipin.d31-Jan-06 18:50 
AnswerRe: date acessing problm in msssql server 2000 Pin
Colin Angus Mackay31-Jan-06 20:27
Colin Angus Mackay31-Jan-06 20:27 
AnswerRe: date acessing problm in msssql server 2000 Pin
idonthavename31-Jan-06 22:37
idonthavename31-Jan-06 22:37 
QuestionDatabinding 2 Datagridviews Pin
elraton31-Jan-06 18:37
elraton31-Jan-06 18:37 
Hi.

I posted this on the C# forum, but probablly this is a better place.

I'm having a little trouble getting this thing to work.

I have two tables Houses and People

Every "Person" belongs to a House, but only one per house is the "OwnerOfHouse".
So I made a colum named "HouseOwner" in the "House" table, which has the PersonID. And every person has a "HouseID_FK" which tells them to which house they belog.

SO here is the thing. I'm working with ADO.NET 2.0, and using BindingSource. So I have a BindingSource that has my Houses in a nice DataGridView, and when I click on any of them, I have another DataGridView which displays the people that live there.
That works Fine.

Now, when I chose one of the inhabitants, and press a button, His ID is updated on the Houses table, and I have a reference that tells me he is the Owner. So far so good.

What I want to do is that when I choose a House in my first DataGridView, The Owner is selected automaticlly in the People DataGridView. So far I've tried everything I could thinf of, but it allways selects the first element (the first person on the list).

Thanks in advance.
QuestionSQL Procedures & SourceSafe Pin
Len Miller31-Jan-06 11:36
Len Miller31-Jan-06 11:36 
AnswerRe: SQL Procedures & SourceSafe Pin
S Douglas1-Feb-06 0:27
professionalS Douglas1-Feb-06 0:27 
GeneralRe: SQL Procedures & SourceSafe Pin
Len Miller1-Feb-06 3:24
Len Miller1-Feb-06 3:24 
QuestionSpecifying DateTime value in a query Pin
Luis Alonso Ramos31-Jan-06 7:37
Luis Alonso Ramos31-Jan-06 7:37 
AnswerRe: Specifying DateTime value in a query Pin
Farhan Noor Qureshi31-Jan-06 8:16
Farhan Noor Qureshi31-Jan-06 8:16 
QuestionEmbedded sql Visual c++.net and mysql and ODBC Pin
JerryMcguire31-Jan-06 7:02
JerryMcguire31-Jan-06 7:02 
QuestionTransfering Data to PDA Pin
jansmith7231-Jan-06 6:49
jansmith7231-Jan-06 6:49 
QuestionQuery Problem?? Pin
tadhg8831-Jan-06 2:04
tadhg8831-Jan-06 2:04 
AnswerRe: Query Problem?? Pin
Michael Potter31-Jan-06 8:39
Michael Potter31-Jan-06 8:39 
QuestionSession Variable using ASP Pin
ketanjh30-Jan-06 21:34
ketanjh30-Jan-06 21:34 
QuestionMust declare the variable '@TheYear' Pin
sasire1830-Jan-06 19:03
sasire1830-Jan-06 19:03 
AnswerRe: Must declare the variable '@TheYear' Pin
Pankaj Kulkarni30-Jan-06 19:47
Pankaj Kulkarni30-Jan-06 19:47 
AnswerRe: Must declare the variable '@TheYear' Pin
venkat2reddy31-Jan-06 0:47
venkat2reddy31-Jan-06 0:47 
GeneralRe: Must declare the variable '@TheYear' Pin
Colin Angus Mackay31-Jan-06 2:27
Colin Angus Mackay31-Jan-06 2:27 
GeneralRe: Must declare the variable '@TheYear' Pin
sasire1831-Jan-06 3:19
sasire1831-Jan-06 3:19 
QuestionconnectionString update not working Pin
Eugenio Lysei Junior30-Jan-06 12:11
Eugenio Lysei Junior30-Jan-06 12:11 
QuestionHOW TO USE TIMESTAMP Pin
ventomito30-Jan-06 9:48
ventomito30-Jan-06 9:48 

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.