Click here to Skip to main content
15,902,777 members
Home / Discussions / Database
   

Database

 
GeneralRe: Error In Query: Pin
Shahzad.Aslam7-Feb-07 17:51
Shahzad.Aslam7-Feb-07 17:51 
AnswerRe: Error In Query: Pin
Christian Graus6-Feb-07 20:39
protectorChristian Graus6-Feb-07 20:39 
GeneralRe: Error In Query: Pin
Shahzad.Aslam6-Feb-07 20:49
Shahzad.Aslam6-Feb-07 20:49 
AnswerRe: Error In Query: Pin
Colin Angus Mackay6-Feb-07 22:21
Colin Angus Mackay6-Feb-07 22:21 
AnswerRe: Error In Query: Pin
Vsree7-Feb-07 0:05
Vsree7-Feb-07 0:05 
QuestionRetrieving data from multiple databases Pin
Malayil alex6-Feb-07 17:56
Malayil alex6-Feb-07 17:56 
AnswerRe: Retrieving data from multiple databases Pin
gauthee6-Feb-07 18:53
gauthee6-Feb-07 18:53 
QuestionFilling a typed dataset Pin
steve_rm6-Feb-07 16:02
steve_rm6-Feb-07 16:02 
Hello,

I have a typed dataset which I want to display in an ultragrid (infragistics) and display the parent and the children.

I can display this ok when I want to display all of the parents and children. But the problem is when user will need to select one parent (by customerID number) from a list and display that parent with its children in the grid.

I have created the dataset schema dsAssembliedEquipment.xsd and my 2 tables assembly and AssembiledEquipment. And also created the relationship between them.

I have a stored procedure (getDataByCustomerID) that will find the customerID of the assembly (parent) table.
This is my code for setting the grid.

<br />
'Table Adapter to get the customer ID record<br />
 Me.TA_Assembly1.GetDataCustomerID(customerID)<br />
'Fill the assembly (parent) table and assembliedEquipment table(child)<br />
            Me.TA_Assembly1.Fill(Me.DsAssemblyEquipment1.Assembly)         Me.TA_AssembliedEquipment1.Fill(Me.DsAssemblyEquipment1.AssembliedEquipment)<br />
            Me.grdCustomersAssembly.DataMember = "Assembly"<br />
            Me.grdCustomersAssembly.DataSource = Me.DsAssemblyEquipment1 <br />


Code for the stored procedure getDataCustomerID:
<br />
ALTER PROCEDURE [dbo].[Assembly_SelByCustomerID]<br />
(<br />
    @CustomerID int<br />
)<br />
AS<br />
    SET NOCOUNT ON;<br />
SELECT AssemblyID, CustomerID, AssemblyName<br />
FROM dbo.[Assembly]<br />
WHERE CustomerID = @CustomerID <br />


I have Assembly (parent) Table fields AssemblyID / customerID / AssemblyName

I have child table called AssemblyEquipment (child) fields SerialNo / make / Model / AssemblyID (Foreign Key)

Many thanks for any help with this problem,

Steve
AnswerRe: Filling a typed dataset Pin
M.H.1.2.37-Feb-07 17:50
M.H.1.2.37-Feb-07 17:50 
QuestionUsing parameter on Query condition not working Pin
firestoper6-Feb-07 15:46
firestoper6-Feb-07 15:46 
AnswerRe: Using parameter on Query condition not working Pin
M.H.1.2.36-Feb-07 16:49
M.H.1.2.36-Feb-07 16:49 
GeneralRe: Using parameter on Query condition not working Pin
firestoper6-Feb-07 18:17
firestoper6-Feb-07 18:17 
AnswerRe: Using parameter on Query condition not working Pin
gauthee6-Feb-07 17:29
gauthee6-Feb-07 17:29 
GeneralRe: Using parameter on Query condition not working Pin
firestoper11-Feb-07 21:16
firestoper11-Feb-07 21:16 
QuestionQuery Help Pin
Hulicat6-Feb-07 15:11
Hulicat6-Feb-07 15:11 
AnswerRe: Query Help Pin
M.H.1.2.36-Feb-07 16:58
M.H.1.2.36-Feb-07 16:58 
GeneralRe: Query Help Pin
Hulicat6-Feb-07 17:25
Hulicat6-Feb-07 17:25 
QuestionSQL parameters and datatypes Pin
sojumonk6-Feb-07 14:16
sojumonk6-Feb-07 14:16 
AnswerRe: SQL parameters and datatypes Pin
Kschuler7-Feb-07 10:37
Kschuler7-Feb-07 10:37 
QuestionHelp required in query formation Pin
www.Developerof.NET6-Feb-07 5:50
www.Developerof.NET6-Feb-07 5:50 
AnswerRe: Help required in query formation Pin
andyharman6-Feb-07 7:54
professionalandyharman6-Feb-07 7:54 
QuestionProblem connecting to remote SQL Express 2005 Pin
Joe Smith IX6-Feb-07 5:02
Joe Smith IX6-Feb-07 5:02 
AnswerRe: Problem connecting to remote SQL Express 2005 Pin
Rob Graham6-Feb-07 5:19
Rob Graham6-Feb-07 5:19 
AnswerRe: Problem connecting to remote SQL Express 2005 Pin
Mark Salsbery6-Feb-07 16:46
Mark Salsbery6-Feb-07 16:46 
AnswerRe: Problem connecting to remote SQL Express 2005 Pin
Joe Smith IX15-Feb-07 2:02
Joe Smith IX15-Feb-07 2:02 

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.