J
Jim Heavey
Hello - I know that you can bind a control to a table and set the
DisplayMember and ValueMember for a particular table. No problem.
My question is if there is a way to relate this to another control. Say
for instance I have a control which allows a user to select "Color" with is
"bound" to a DataTable called "Colors". Then I have another control which
list body styles. Not all body styles are available in all colors. When
the user selects a new color in one control, I only want to display the
body styles which relate to that color.
I know that I can do this with a "DataView" and when the SelectedIndex
changes on the Colors control, I would then set the dataview on the Body
Style Control to the appropriate color.
But is there a better way other then this?
DisplayMember and ValueMember for a particular table. No problem.
My question is if there is a way to relate this to another control. Say
for instance I have a control which allows a user to select "Color" with is
"bound" to a DataTable called "Colors". Then I have another control which
list body styles. Not all body styles are available in all colors. When
the user selects a new color in one control, I only want to display the
body styles which relate to that color.
I know that I can do this with a "DataView" and when the SelectedIndex
changes on the Colors control, I would then set the dataview on the Body
Style Control to the appropriate color.
But is there a better way other then this?