Click here to Skip to main content
15,907,326 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioni want to add Button and imge in DataGrid VS.net2003 Pin
Ahmed El-Badry6-Feb-07 0:45
Ahmed El-Badry6-Feb-07 0:45 
AnswerRe: i want to add Button and imge in DataGrid VS.net2003 Pin
Taylor Kobani6-Feb-07 5:32
Taylor Kobani6-Feb-07 5:32 
GeneralRe: i want to add Button and imge in DataGrid VS.net2003 Pin
Ahmed El-Badry6-Feb-07 23:38
Ahmed El-Badry6-Feb-07 23:38 
Questiontyped datasets and parent/child relationships Pin
steve_rm6-Feb-07 0:27
steve_rm6-Feb-07 0:27 
AnswerRe: typed datasets and parent/child relationships Pin
Andi Fandrich6-Feb-07 2:50
professionalAndi Fandrich6-Feb-07 2:50 
QuestionRe: typed datasets and parent/child relationships Pin
steve_rm6-Feb-07 4:30
steve_rm6-Feb-07 4:30 
AnswerRe: typed datasets and parent/child relationships Pin
Andi Fandrich6-Feb-07 5:20
professionalAndi Fandrich6-Feb-07 5:20 
QuestionRe: typed datasets and parent/child relationships Pin
steve_rm6-Feb-07 7:36
steve_rm6-Feb-07 7:36 
Hello Andi,

Thanks for your reply - I did try and make the relationship in code, just to see if it made any difference
<br />
 Dim parentColumn As DataColumn = Me.DsCustomerEquipment1._Assembly.Columns("AssemblyID")<br />
            Dim childColumn As DataColumn = Me.DsCustomerEquipment1.AssembliedEquipment.Columns("AssemblyID")<br />
<br />
            Me.DsCustomerEquipment1.Relations.Clear()<br />
            Dim drAssemblies As New DataRelation("AssemblyDetails", parentColumn, childColumn)<br />
            Me.DsCustomerEquipment1.Relations.Add(drAssemblies)<br />
<br />
            Me.UltraGrid2.DataSource = Me.DsCustomerEquipment1<br />
<br />
            Me.UltraGrid1.DataMember = "Assembly"<br />
            Me.UltraGrid1.DataSource = Me.DsCustomerEquipment1<br />


Displays all of the parents and children. Which is not what I want. Let me explain I have Assembly Table fields AssemblyID | customerID | AssemblyName

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

The user will selects a customer and then the grid should display the customer's assembly and the assembly will show all the equipment that is contained in that assembly.

I have just tried this but it didn't work
<br />
'Select the parents with customerID number 2 and fill the dataset<br />
 Me.AssemblyTableAdapter1.GetDataByCustomerID(2)<br />
            Me.AssemblyTableAdapter1.Fill(Me.DsCustomerEquipment1._Assembly)<br />
'Set the databinding for the grid<br />
            Me.UltraGrid1.SetDataBinding(Me.DsCustomerEquipment1, "Assembly")<br />


Hope you can help,

Many thanks and most grateful,

Steve
AnswerRe: typed datasets and parent/child relationships Pin
Andi Fandrich6-Feb-07 21:06
professionalAndi Fandrich6-Feb-07 21:06 
QuestionRe: typed datasets and parent/child relationships Pin
steve_rm7-Feb-07 5:50
steve_rm7-Feb-07 5:50 
AnswerRe: typed datasets and parent/child relationships Pin
Andi Fandrich7-Feb-07 7:09
professionalAndi Fandrich7-Feb-07 7:09 
QuestionDynamicly set different property of object Pin
Philippe Delodder6-Feb-07 0:02
Philippe Delodder6-Feb-07 0:02 
AnswerRe: Dynamicly set different property of object Pin
nlarson116-Feb-07 3:56
nlarson116-Feb-07 3:56 
GeneralRe: Dynamicly set different property of object Pin
Philippe Delodder6-Feb-07 4:07
Philippe Delodder6-Feb-07 4:07 
GeneralRe: Dynamicly set different property of object Pin
nlarson116-Feb-07 4:20
nlarson116-Feb-07 4:20 
GeneralRe: Dynamicly set different property of object Pin
Philippe Delodder6-Feb-07 22:25
Philippe Delodder6-Feb-07 22:25 
QuestionSearching text in a datagridview as the user key in a textbox Pin
Sandy C5-Feb-07 23:02
Sandy C5-Feb-07 23:02 
AnswerRe: Searching text in a datagridview as the user key in a textbox Pin
DA_Loring6-Feb-07 22:48
DA_Loring6-Feb-07 22:48 
QuestionClosing the form when the user clicks outside the form Pin
Sandy C5-Feb-07 22:48
Sandy C5-Feb-07 22:48 
AnswerRe: Closing the form when the user clicks outside the form Pin
nlarson116-Feb-07 4:01
nlarson116-Feb-07 4:01 
QuestionWhy I only can deploy 1 time? Pin
crazyteh5-Feb-07 22:04
crazyteh5-Feb-07 22:04 
AnswerRe: Why I only can deploy 1 time? Pin
Christian Graus5-Feb-07 22:44
protectorChristian Graus5-Feb-07 22:44 
GeneralRe: Why I only can deploy 1 time? Pin
crazyteh7-Feb-07 16:04
crazyteh7-Feb-07 16:04 
Questionnewbie on DB2 Pin
sal215-Feb-07 21:53
sal215-Feb-07 21:53 
Questionsql server 2000 in window service Pin
harsh_c5-Feb-07 20:36
professionalharsh_c5-Feb-07 20:36 

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.