1
Answer

Bound edit boxes do not display data

jrosa

jrosa

20y
1.7k
1
I have a dialog that has 5 edit boxes bound to a Dataset. When I fill the dataset from the Form Load event the edit boxes do not show the data. When I fill the dataset at the Form Creation the edit boxes show the data. I use a parameterized query that depends a value passed from the parent window. How can I get the data to display in the edit boxes when I fill the dataset from the Form Load event? Thanks, John
Answers (1)
0
jrosa

jrosa

NA 7 0 20y
I found my own solution... I found that I could not have a DateTimePicker control bound to the dataset. When the DateTimePicker control was bound to the dataaset, the data would not display in any of the controls on the form. When I "un-bound" the DateTimePicker control, then the data woudl display properly. I bound an edit box to the date column and then updated the DateTimePicker control when the value of the edit box changed.