J
JJGarcia
Hi Everyone,
I'll try to explain the process I'm following, I'm new to this so I'm
triying the easy way first, probably the lasyest too!
I created a new Project, drag in to it a SQLConnection, configured,
dragged an Dataadapter per each table I need it, then generated the
dataset, after that, I stablished the relations between tables, then,
went over to the datasources, choose the parent datasource and clicked
on the + sign, it displayed me every field on that table as well as the
related tables, until here everything goes fine, after that I change
the the way I want the controls to be displayed from datagrid to form
then drag/drop the source over the form and run the form, everything is
fine until here, here's the little problem, I have a field called
'empid' wich is supposed to be a comboBox, I click over it and it
displays nothing, I went back and stablish a datasource for it, value
to display, etc, etc then, run the form again and it does display the
numbers but when I start going over them it begins to change everyvalue
on the combobox, per example, when the form is ran for the first time
it displays the values 1001, 1002 and 1003, then while it's running I
choose the diferent values and it displays them right but then when I
click on the combobox there's number 1, choose a different value then
when I go back it's showing a number 3 but numbers 1001 and 1002 are
gone, I close the form and run it again and the numbers show fine
again.
Hope I explained myself, if there's any advice on what it is what I am
doing wrong please let me know, thanks in advance!
I'll try to explain the process I'm following, I'm new to this so I'm
triying the easy way first, probably the lasyest too!
I created a new Project, drag in to it a SQLConnection, configured,
dragged an Dataadapter per each table I need it, then generated the
dataset, after that, I stablished the relations between tables, then,
went over to the datasources, choose the parent datasource and clicked
on the + sign, it displayed me every field on that table as well as the
related tables, until here everything goes fine, after that I change
the the way I want the controls to be displayed from datagrid to form
then drag/drop the source over the form and run the form, everything is
fine until here, here's the little problem, I have a field called
'empid' wich is supposed to be a comboBox, I click over it and it
displays nothing, I went back and stablish a datasource for it, value
to display, etc, etc then, run the form again and it does display the
numbers but when I start going over them it begins to change everyvalue
on the combobox, per example, when the form is ran for the first time
it displays the values 1001, 1002 and 1003, then while it's running I
choose the diferent values and it displays them right but then when I
click on the combobox there's number 1, choose a different value then
when I go back it's showing a number 3 but numbers 1001 and 1002 are
gone, I close the form and run it again and the numbers show fine
again.
Hope I explained myself, if there's any advice on what it is what I am
doing wrong please let me know, thanks in advance!