473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Dual Combo box binding problem (relation involved)

Here's an example of the code.. I have two combo boxes on screen that when
one's selection is change the other's items will be updated to reflect the
change (based on a relation)

Private ds_formData As New DataSet
'
' Fill Line Of Business
'
cmd_selectCommand.CommandText = "BENESP_GetLinesOfBusiness"
da_formData.FillSchema(ds_formData, SchemaType.Source, "LinesOfBusiness")
da_formData.Fill(ds_formData, "LinesOfBusiness")
'
' Fill in available types
'
cmd_selectCommand.CommandText = "BENESP_GetCoverageTypes"
da_formData.Fill(ds_formData, "CoverageTypes")

'///// Parts of that code is obviously missing, but thats just showing the
data being filled into the dataset (these are static lists and will never
change)
' Create relations
ds_formData.Relations.Add("LOBJunCoverageTypes",
ds_formData.Tables("LinesOfBusiness").Columns("Lin eOfBusinessID"),
ds_formData.Tables("CoverageTypes").Columns("LineO fBusinessID"))

'

' Set up combo box relation bindings

'

Me.cboCoverageLine.DataSource =
ds_formData.Relations("LOBJunCoverageTypes").Paren tTable

Me.cboCoverageType.DisplayMember = "Name"

' Me.cboCoverageType.ValueMember = "CoverageTypeID"

Me.cboCoverageLine.ValueMember = "LineOfBusinessID"

Me.cboCoverageLine.DisplayMember = "Name"

Private Sub cboCoverageLine_SelectedValueChanged(ByVal sender As Object,
ByVal e As System.EventArgs) Handles cboCoverageLine.SelectedValueChanged

If (Not Me.cboCoverageLine.SelectedValue Is Nothing) And (b_refillingData =
False) Then

Me.cboCoverageType.DataSource =
ds_formData.Tables("LinesOfBusiness").Rows.Find(Me .cboCoverageLine.SelectedV
alue).GetChildRows("LOBJunCoverageTypes")

Me.cboCoverageType.DisplayMember = "Name"

Me.cboCoverageType.ValueMember = "CoverageTypeID"

End If

End Sub

========================

now, when the user changes the comobo box, cbocoverageline it should update
the combo box cbocoveragetype with the related types tied to the selected
coverageline in the 1st combo box, well it gets the data back but the combo
box is instead of showing the data. it shows "System.Data.DataRow" the
correct number of items show up in the second combo box, but no name, just
the type of the object. How do i correct this? thanks
Nov 20 '05 #1
6 1604
Brian:

If you have the relations set, just bind the second combo box to the dataset
or datatable. You don't need to do a find if the relations are in place
correctly.

That behavior is usually a sign that something isn't being resolved
correctly although the datasource is being set properly.
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:uT**************@TK2MSFTNGP11.phx.gbl...
Here's an example of the code.. I have two combo boxes on screen that when
one's selection is change the other's items will be updated to reflect the
change (based on a relation)

Private ds_formData As New DataSet
'
' Fill Line Of Business
'
cmd_selectCommand.CommandText = "BENESP_GetLinesOfBusiness"
da_formData.FillSchema(ds_formData, SchemaType.Source, "LinesOfBusiness")
da_formData.Fill(ds_formData, "LinesOfBusiness")
'
' Fill in available types
'
cmd_selectCommand.CommandText = "BENESP_GetCoverageTypes"
da_formData.Fill(ds_formData, "CoverageTypes")

'///// Parts of that code is obviously missing, but thats just showing the
data being filled into the dataset (these are static lists and will never
change)
' Create relations
ds_formData.Relations.Add("LOBJunCoverageTypes",
ds_formData.Tables("LinesOfBusiness").Columns("Lin eOfBusinessID"),
ds_formData.Tables("CoverageTypes").Columns("LineO fBusinessID"))

'

' Set up combo box relation bindings

'

Me.cboCoverageLine.DataSource =
ds_formData.Relations("LOBJunCoverageTypes").Paren tTable

Me.cboCoverageType.DisplayMember = "Name"

' Me.cboCoverageType.ValueMember = "CoverageTypeID"

Me.cboCoverageLine.ValueMember = "LineOfBusinessID"

Me.cboCoverageLine.DisplayMember = "Name"

Private Sub cboCoverageLine_SelectedValueChanged(ByVal sender As Object,
ByVal e As System.EventArgs) Handles cboCoverageLine.SelectedValueChanged

If (Not Me.cboCoverageLine.SelectedValue Is Nothing) And (b_refillingData = False) Then

Me.cboCoverageType.DataSource =
ds_formData.Tables("LinesOfBusiness").Rows.Find(Me .cboCoverageLine.SelectedV alue).GetChildRows("LOBJunCoverageTypes")

Me.cboCoverageType.DisplayMember = "Name"

Me.cboCoverageType.ValueMember = "CoverageTypeID"

End If

End Sub

========================

now, when the user changes the comobo box, cbocoverageline it should update the combo box cbocoveragetype with the related types tied to the selected
coverageline in the 1st combo box, well it gets the data back but the combo box is instead of showing the data. it shows "System.Data.DataRow" the
correct number of items show up in the second combo box, but no name, just
the type of the object. How do i correct this? thanks

Nov 20 '05 #2
Hi William,

I tried before by setting the datasource of the 2nd combo box to the
childtable of the relation, and that didn't seem to work, can you give an
example of what you mean? thanks
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:Or**************@TK2MSFTNGP12.phx.gbl...
Brian:

If you have the relations set, just bind the second combo box to the dataset or datatable. You don't need to do a find if the relations are in place
correctly.

That behavior is usually a sign that something isn't being resolved
correctly although the datasource is being set properly.
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:uT**************@TK2MSFTNGP11.phx.gbl...
Here's an example of the code.. I have two combo boxes on screen that when one's selection is change the other's items will be updated to reflect the change (based on a relation)

Private ds_formData As New DataSet
'
' Fill Line Of Business
'
cmd_selectCommand.CommandText = "BENESP_GetLinesOfBusiness"
da_formData.FillSchema(ds_formData, SchemaType.Source, "LinesOfBusiness") da_formData.Fill(ds_formData, "LinesOfBusiness")
'
' Fill in available types
'
cmd_selectCommand.CommandText = "BENESP_GetCoverageTypes"
da_formData.Fill(ds_formData, "CoverageTypes")

'///// Parts of that code is obviously missing, but thats just showing the data being filled into the dataset (these are static lists and will never change)
' Create relations
ds_formData.Relations.Add("LOBJunCoverageTypes",
ds_formData.Tables("LinesOfBusiness").Columns("Lin eOfBusinessID"),
ds_formData.Tables("CoverageTypes").Columns("LineO fBusinessID"))

'

' Set up combo box relation bindings

'

Me.cboCoverageLine.DataSource =
ds_formData.Relations("LOBJunCoverageTypes").Paren tTable

Me.cboCoverageType.DisplayMember = "Name"

' Me.cboCoverageType.ValueMember = "CoverageTypeID"

Me.cboCoverageLine.ValueMember = "LineOfBusinessID"

Me.cboCoverageLine.DisplayMember = "Name"

Private Sub cboCoverageLine_SelectedValueChanged(ByVal sender As Object,
ByVal e As System.EventArgs) Handles cboCoverageLine.SelectedValueChanged
If (Not Me.cboCoverageLine.SelectedValue Is Nothing) And (b_refillingData
=
False) Then

Me.cboCoverageType.DataSource =

ds_formData.Tables("LinesOfBusiness").Rows.Find(Me .cboCoverageLine.SelectedV alue).GetChildRows("LOBJunCoverageTypes")

Me.cboCoverageType.DisplayMember = "Name"

Me.cboCoverageType.ValueMember = "CoverageTypeID"

End If

End Sub

========================

now, when the user changes the comobo box, cbocoverageline it should

update
the combo box cbocoveragetype with the related types tied to the selected coverageline in the 1st combo box, well it gets the data back but the

combo
box is instead of showing the data. it shows "System.Data.DataRow" the
correct number of items show up in the second combo box, but no name, just the type of the object. How do i correct this? thanks


Nov 20 '05 #3
Set it to the name of the bindingcontext.relation.

If you had a BindingContext with the name of employees bmb =
Me.BindingContext(Ds1, "Employees")

And a relation name relVisit
Dim relVisit As DataRelation
relVisit = New DataRelation("VisitRel", parentCol, vistaCol)

cbWhatever.ValueMember = "Employees.VistaRel"
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
Hi William,

I tried before by setting the datasource of the 2nd combo box to the
childtable of the relation, and that didn't seem to work, can you give an
example of what you mean? thanks
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:Or**************@TK2MSFTNGP12.phx.gbl...
Brian:

If you have the relations set, just bind the second combo box to the

dataset
or datatable. You don't need to do a find if the relations are in place
correctly.

That behavior is usually a sign that something isn't being resolved
correctly although the datasource is being set properly.
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:uT**************@TK2MSFTNGP11.phx.gbl...
Here's an example of the code.. I have two combo boxes on screen that when one's selection is change the other's items will be updated to reflect the change (based on a relation)

Private ds_formData As New DataSet
'
' Fill Line Of Business
'
cmd_selectCommand.CommandText = "BENESP_GetLinesOfBusiness"
da_formData.FillSchema(ds_formData, SchemaType.Source, "LinesOfBusiness") da_formData.Fill(ds_formData, "LinesOfBusiness")
'
' Fill in available types
'
cmd_selectCommand.CommandText = "BENESP_GetCoverageTypes"
da_formData.Fill(ds_formData, "CoverageTypes")

'///// Parts of that code is obviously missing, but thats just showing the data being filled into the dataset (these are static lists and will never change)
' Create relations
ds_formData.Relations.Add("LOBJunCoverageTypes",
ds_formData.Tables("LinesOfBusiness").Columns("Lin eOfBusinessID"),
ds_formData.Tables("CoverageTypes").Columns("LineO fBusinessID"))

'

' Set up combo box relation bindings

'

Me.cboCoverageLine.DataSource =
ds_formData.Relations("LOBJunCoverageTypes").Paren tTable

Me.cboCoverageType.DisplayMember = "Name"

' Me.cboCoverageType.ValueMember = "CoverageTypeID"

Me.cboCoverageLine.ValueMember = "LineOfBusinessID"

Me.cboCoverageLine.DisplayMember = "Name"

Private Sub cboCoverageLine_SelectedValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboCoverageLine.SelectedValueChanged
If (Not Me.cboCoverageLine.SelectedValue Is Nothing) And (b_refillingData
=
False) Then

Me.cboCoverageType.DataSource =

ds_formData.Tables("LinesOfBusiness").Rows.Find(Me .cboCoverageLine.SelectedV
alue).GetChildRows("LOBJunCoverageTypes")

Me.cboCoverageType.DisplayMember = "Name"

Me.cboCoverageType.ValueMember = "CoverageTypeID"

End If

End Sub

========================

now, when the user changes the comobo box, cbocoverageline it should

update
the combo box cbocoveragetype with the related types tied to the selected coverageline in the 1st combo box, well it gets the data back but the

combo
box is instead of showing the data. it shows "System.Data.DataRow" the
correct number of items show up in the second combo box, but no name, just the type of the object. How do i correct this? thanks



Nov 20 '05 #4
I'm confused as to why I would set the value member to that when I'm not
trying to select an item, just reload a second combo box with all new data
that happens to be related to what is selected in the first combo box.
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:O$**************@tk2msftngp13.phx.gbl...
Set it to the name of the bindingcontext.relation.

If you had a BindingContext with the name of employees bmb =
Me.BindingContext(Ds1, "Employees")

And a relation name relVisit
Dim relVisit As DataRelation
relVisit = New DataRelation("VisitRel", parentCol, vistaCol)

cbWhatever.ValueMember = "Employees.VistaRel"
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
Hi William,

I tried before by setting the datasource of the 2nd combo box to the
childtable of the relation, and that didn't seem to work, can you give an
example of what you mean? thanks
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:Or**************@TK2MSFTNGP12.phx.gbl...
Brian:

If you have the relations set, just bind the second combo box to the

dataset
or datatable. You don't need to do a find if the relations are in place correctly.

That behavior is usually a sign that something isn't being resolved
correctly although the datasource is being set properly.
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:uT**************@TK2MSFTNGP11.phx.gbl...
> Here's an example of the code.. I have two combo boxes on screen that
when
> one's selection is change the other's items will be updated to
reflect the
> change (based on a relation)
>
> Private ds_formData As New DataSet
> '
> ' Fill Line Of Business
> '
> cmd_selectCommand.CommandText = "BENESP_GetLinesOfBusiness"
> da_formData.FillSchema(ds_formData, SchemaType.Source,

"LinesOfBusiness")
> da_formData.Fill(ds_formData, "LinesOfBusiness")
> '
> ' Fill in available types
> '
> cmd_selectCommand.CommandText = "BENESP_GetCoverageTypes"
> da_formData.Fill(ds_formData, "CoverageTypes")
>
> '///// Parts of that code is obviously missing, but thats just
showing the
> data being filled into the dataset (these are static lists and will

never
> change)
> ' Create relations
> ds_formData.Relations.Add("LOBJunCoverageTypes",
> ds_formData.Tables("LinesOfBusiness").Columns("Lin eOfBusinessID"),
> ds_formData.Tables("CoverageTypes").Columns("LineO fBusinessID"))
>
> '
>
> ' Set up combo box relation bindings
>
> '
>
> Me.cboCoverageLine.DataSource =
> ds_formData.Relations("LOBJunCoverageTypes").Paren tTable
>
> Me.cboCoverageType.DisplayMember = "Name"
>
> ' Me.cboCoverageType.ValueMember = "CoverageTypeID"
>
> Me.cboCoverageLine.ValueMember = "LineOfBusinessID"
>
> Me.cboCoverageLine.DisplayMember = "Name"
>
>
>
> Private Sub cboCoverageLine_SelectedValueChanged(ByVal sender As Object, > ByVal e As System.EventArgs) Handles

cboCoverageLine.SelectedValueChanged
>
> If (Not Me.cboCoverageLine.SelectedValue Is Nothing) And

(b_refillingData
=
> False) Then
>
> Me.cboCoverageType.DataSource =
>

ds_formData.Tables("LinesOfBusiness").Rows.Find(Me .cboCoverageLine.SelectedV > alue).GetChildRows("LOBJunCoverageTypes")
>
> Me.cboCoverageType.DisplayMember = "Name"
>
> Me.cboCoverageType.ValueMember = "CoverageTypeID"
>
>
>
> End If
>
> End Sub
>
>
>
>
>
> ========================
>
> now, when the user changes the comobo box, cbocoverageline it should
update
> the combo box cbocoveragetype with the related types tied to the

selected
> coverageline in the 1st combo box, well it gets the data back but the combo
> box is instead of showing the data. it shows "System.Data.DataRow" the > correct number of items show up in the second combo box, but no

name, just
> the type of the object. How do i correct this? thanks
>
>



Nov 20 '05 #5
I have it working relatively easy using a data view, but thought using
relations would work somehow also

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:O$**************@tk2msftngp13.phx.gbl...
Set it to the name of the bindingcontext.relation.

If you had a BindingContext with the name of employees bmb =
Me.BindingContext(Ds1, "Employees")

And a relation name relVisit
Dim relVisit As DataRelation
relVisit = New DataRelation("VisitRel", parentCol, vistaCol)

cbWhatever.ValueMember = "Employees.VistaRel"
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
Hi William,

I tried before by setting the datasource of the 2nd combo box to the
childtable of the relation, and that didn't seem to work, can you give an
example of what you mean? thanks
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:Or**************@TK2MSFTNGP12.phx.gbl...
Brian:

If you have the relations set, just bind the second combo box to the

dataset
or datatable. You don't need to do a find if the relations are in place correctly.

That behavior is usually a sign that something isn't being resolved
correctly although the datasource is being set properly.
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:uT**************@TK2MSFTNGP11.phx.gbl...
> Here's an example of the code.. I have two combo boxes on screen that
when
> one's selection is change the other's items will be updated to
reflect the
> change (based on a relation)
>
> Private ds_formData As New DataSet
> '
> ' Fill Line Of Business
> '
> cmd_selectCommand.CommandText = "BENESP_GetLinesOfBusiness"
> da_formData.FillSchema(ds_formData, SchemaType.Source,

"LinesOfBusiness")
> da_formData.Fill(ds_formData, "LinesOfBusiness")
> '
> ' Fill in available types
> '
> cmd_selectCommand.CommandText = "BENESP_GetCoverageTypes"
> da_formData.Fill(ds_formData, "CoverageTypes")
>
> '///// Parts of that code is obviously missing, but thats just
showing the
> data being filled into the dataset (these are static lists and will

never
> change)
> ' Create relations
> ds_formData.Relations.Add("LOBJunCoverageTypes",
> ds_formData.Tables("LinesOfBusiness").Columns("Lin eOfBusinessID"),
> ds_formData.Tables("CoverageTypes").Columns("LineO fBusinessID"))
>
> '
>
> ' Set up combo box relation bindings
>
> '
>
> Me.cboCoverageLine.DataSource =
> ds_formData.Relations("LOBJunCoverageTypes").Paren tTable
>
> Me.cboCoverageType.DisplayMember = "Name"
>
> ' Me.cboCoverageType.ValueMember = "CoverageTypeID"
>
> Me.cboCoverageLine.ValueMember = "LineOfBusinessID"
>
> Me.cboCoverageLine.DisplayMember = "Name"
>
>
>
> Private Sub cboCoverageLine_SelectedValueChanged(ByVal sender As Object, > ByVal e As System.EventArgs) Handles

cboCoverageLine.SelectedValueChanged
>
> If (Not Me.cboCoverageLine.SelectedValue Is Nothing) And

(b_refillingData
=
> False) Then
>
> Me.cboCoverageType.DataSource =
>

ds_formData.Tables("LinesOfBusiness").Rows.Find(Me .cboCoverageLine.SelectedV > alue).GetChildRows("LOBJunCoverageTypes")
>
> Me.cboCoverageType.DisplayMember = "Name"
>
> Me.cboCoverageType.ValueMember = "CoverageTypeID"
>
>
>
> End If
>
> End Sub
>
>
>
>
>
> ========================
>
> now, when the user changes the comobo box, cbocoverageline it should
update
> the combo box cbocoveragetype with the related types tied to the

selected
> coverageline in the 1st combo box, well it gets the data back but the combo
> box is instead of showing the data. it shows "System.Data.DataRow" the > correct number of items show up in the second combo box, but no

name, just
> the type of the object. How do i correct this? thanks
>
>



Nov 20 '05 #6
I forgot to include the displaymember. However, I noticed your next post
with the dataview, that's a pretty clean way to do it too.
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:OP**************@TK2MSFTNGP10.phx.gbl...
I'm confused as to why I would set the value member to that when I'm not
trying to select an item, just reload a second combo box with all new data
that happens to be related to what is selected in the first combo box.
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:O$**************@tk2msftngp13.phx.gbl...
Set it to the name of the bindingcontext.relation.

If you had a BindingContext with the name of employees bmb =
Me.BindingContext(Ds1, "Employees")

And a relation name relVisit
Dim relVisit As DataRelation
relVisit = New DataRelation("VisitRel", parentCol, vistaCol)

cbWhatever.ValueMember = "Employees.VistaRel"
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
Hi William,

I tried before by setting the datasource of the 2nd combo box to the
childtable of the relation, and that didn't seem to work, can you give an example of what you mean? thanks
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:Or**************@TK2MSFTNGP12.phx.gbl...
> Brian:
>
> If you have the relations set, just bind the second combo box to the
dataset
> or datatable. You don't need to do a find if the relations are in place > correctly.
>
> That behavior is usually a sign that something isn't being resolved
> correctly although the datasource is being set properly.
> "Brian Henry" <br**********@newsgroups.nospam> wrote in message
> news:uT**************@TK2MSFTNGP11.phx.gbl...
> > Here's an example of the code.. I have two combo boxes on screen that when
> > one's selection is change the other's items will be updated to reflect the
> > change (based on a relation)
> >
> > Private ds_formData As New DataSet
> > '
> > ' Fill Line Of Business
> > '
> > cmd_selectCommand.CommandText = "BENESP_GetLinesOfBusiness"
> > da_formData.FillSchema(ds_formData, SchemaType.Source,
"LinesOfBusiness")
> > da_formData.Fill(ds_formData, "LinesOfBusiness")
> > '
> > ' Fill in available types
> > '
> > cmd_selectCommand.CommandText = "BENESP_GetCoverageTypes"
> > da_formData.Fill(ds_formData, "CoverageTypes")
> >
> > '///// Parts of that code is obviously missing, but thats just showing the
> > data being filled into the dataset (these are static lists and will never
> > change)
> > ' Create relations
> > ds_formData.Relations.Add("LOBJunCoverageTypes",
> > ds_formData.Tables("LinesOfBusiness").Columns("Lin eOfBusinessID"),
> > ds_formData.Tables("CoverageTypes").Columns("LineO fBusinessID"))
> >
> > '
> >
> > ' Set up combo box relation bindings
> >
> > '
> >
> > Me.cboCoverageLine.DataSource =
> > ds_formData.Relations("LOBJunCoverageTypes").Paren tTable
> >
> > Me.cboCoverageType.DisplayMember = "Name"
> >
> > ' Me.cboCoverageType.ValueMember = "CoverageTypeID"
> >
> > Me.cboCoverageLine.ValueMember = "LineOfBusinessID"
> >
> > Me.cboCoverageLine.DisplayMember = "Name"
> >
> >
> >
> > Private Sub cboCoverageLine_SelectedValueChanged(ByVal sender As

Object,
> > ByVal e As System.EventArgs) Handles
cboCoverageLine.SelectedValueChanged
> >
> > If (Not Me.cboCoverageLine.SelectedValue Is Nothing) And
(b_refillingData
> =
> > False) Then
> >
> > Me.cboCoverageType.DataSource =
> >
>

ds_formData.Tables("LinesOfBusiness").Rows.Find(Me .cboCoverageLine.SelectedV
> > alue).GetChildRows("LOBJunCoverageTypes")
> >
> > Me.cboCoverageType.DisplayMember = "Name"
> >
> > Me.cboCoverageType.ValueMember = "CoverageTypeID"
> >
> >
> >
> > End If
> >
> > End Sub
> >
> >
> >
> >
> >
> > ========================
> >
> > now, when the user changes the comobo box, cbocoverageline it should > update
> > the combo box cbocoveragetype with the related types tied to the
selected
> > coverageline in the 1st combo box, well it gets the data back but the > combo
> > box is instead of showing the data. it shows "System.Data.DataRow" the > > correct number of items show up in the second combo box, but no name, just
> > the type of the object. How do i correct this? thanks
> >
> >
>
>



Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: CGuy | last post by:
URGENT HELP REQUIRED FROM GURUS Hi, I have a custom object that implements ICollection and IListSource. This object has also an enumerator defined for it which implements IEnumerator and...
5
by: Dalan | last post by:
I have been searching the archives in an effort to discover how to derive a dual use of a single combo box - so far no go. I found the piece below which pretty much represents the usage. To...
3
by: Jane | last post by:
Hello, I am working on a windows application with C#. What I need is to display a list of data in 2nd combo box based on the selection of the 1st combo box. I used SqlCommand object and...
7
by: erniej | last post by:
as per instructions in the walkthrough, I have managed to create a master/detail relationship between two datagrids. However I have a requirement to apply this to three datagrids and the third...
2
by: SoftWhiteDelgiht | last post by:
Help me. I am obviously stupid! :-) I am just starting out with VB.Net and am trying to do a simple master/detail form with a SqlServer backend. I have created a combo box which is to populate with...
5
by: JC Voon | last post by:
Hi: I have two combo boxes on screen that when one's selection is change the other's items will be updated to reflect the change dtMaster = .... ds.Tables.Add(dtMaster)
3
by: Bill | last post by:
I have what I think should be a simple question regarding a bound combo box. My first table is Dealers: DealerID - primary key DealerName BillToLocation My second table is Locations:...
15
by: Woody Ling | last post by:
I am starting to config a 64 bits DB2 in IBM 595 AIX box with 2 dual core CPU and I would like to assigned one 'processor' for one db partition. Should I config it as a 4 nodes or 2 nodes...
1
by: Monty M. | last post by:
Does anyone know how to perform two way data binding between a combo box and a listview. The listview is bound to a dataset table in code: Binding Bind = new Binding(); DataTable dt;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.