S
sandal
I'm new to vstudio and have the 2008 beta installed. From the data
source windows I dragged a detail form set of controls over to a form
and vs created the four fields for me complete with the navigation and
so forth. As long as I kept the fkey as an integer I could update. When
I removed that integer column and replaced with a combobox by dragging
from the toolbox (not the data sources window). I used the smart tag to
"Use data bound items" and the for data source used
tlkpItemTypeBindingSource, with sensible value and display members.
At runtime the combobox is populated; but when I try to update the
combobox, save the record, the change is not persisted. When I try to
create a new record, at save there is an error that the ItemTypeID field
is null (that's the field with combobox).
What am I missing?
Also, I don't understand what vs means by the (Data Bindings) property
listing. Most of the time if I expand that property Selected Item and
Selected Value are blank, even if the control does have values in the
data source, Display Member, and Value Member properties have values and
the control is functionally bound. So what does the (Data Bindings)
property point to?
source windows I dragged a detail form set of controls over to a form
and vs created the four fields for me complete with the navigation and
so forth. As long as I kept the fkey as an integer I could update. When
I removed that integer column and replaced with a combobox by dragging
from the toolbox (not the data sources window). I used the smart tag to
"Use data bound items" and the for data source used
tlkpItemTypeBindingSource, with sensible value and display members.
At runtime the combobox is populated; but when I try to update the
combobox, save the record, the change is not persisted. When I try to
create a new record, at save there is an error that the ItemTypeID field
is null (that's the field with combobox).
What am I missing?
Also, I don't understand what vs means by the (Data Bindings) property
listing. Most of the time if I expand that property Selected Item and
Selected Value are blank, even if the control does have values in the
data source, Display Member, and Value Member properties have values and
the control is functionally bound. So what does the (Data Bindings)
property point to?