Hi
I have an Access database and i want
to connect it to my software using the .net component and not through code, i succeded on doing that,
but i encountered caple of problems:
1) I have a MDI parent form and caple of child forms, and i want that
a table from the database will be presented on the datagrid in one of the child forms and the fields will be presented in another, according to the selection in the datagrid.
I secceded on doing that with the same form, but how can i do that
with diffrent child forms ?
2) I want that the same datagridview will have the option to present
caple of tables, i made the dataSource and the DataMember, and
made that diffrent buttons will apply diffrent Queries to filter the datagridview.
But, when i try to present a Query of diffrent table then what i put at
the beginnig, its putting the data inside the fields that have the same name, but not changing the all grid columns.
Why is that ? How can i do that ?
Here is the Query on the default table:
After i use this Query i use this one, that apply to a diffrent table:
It seems to put the data on a fields which have the same name,
but its not changing all the columns to the new table,
Why is that ?
Thanks.
I have an Access database and i want
to connect it to my software using the .net component and not through code, i succeded on doing that,
but i encountered caple of problems:
1) I have a MDI parent form and caple of child forms, and i want that
a table from the database will be presented on the datagrid in one of the child forms and the fields will be presented in another, according to the selection in the datagrid.
I secceded on doing that with the same form, but how can i do that
with diffrent child forms ?
2) I want that the same datagridview will have the option to present
caple of tables, i made the dataSource and the DataMember, and
made that diffrent buttons will apply diffrent Queries to filter the datagridview.
But, when i try to present a Query of diffrent table then what i put at
the beginnig, its putting the data inside the fields that have the same name, but not changing the all grid columns.
Why is that ? How can i do that ?
Here is the Query on the default table:
gridForm.ProjectsTableAdapter1.InProgress(gridForm.Db1DataSet.Projects)
After i use this Query i use this one, that apply to a diffrent table:
gridForm.SuperDataGridView1.DataMember = "Technicians"
gridForm.TechniciansTableAdapter.Fill(gridForm.Db1DataSet.Technicians)
It seems to put the data on a fields which have the same name,
but its not changing all the columns to the new table,
Why is that ?
Thanks.
Last edited: