keko2004
Active member
questions about db access
hey guys. was wondering how to go about make a couple of things properly. first off i have 4 tables in a ms sql db that i need to connect. i noticed that there is 2 ways to go about this. 1st i can make a connection class with adapter and data set for each table. or i can make one class with one connection and use multiple adapters and datasets with that 1 connection instead of having 4 class'. which is better to do?
now for editing a row in my table. is there a way i can have the user just select the row from the datagrid and make an edit button which will then open up an edit form? if so how can i go about doing this, or which is a better way.
and 1 more thing but is not as imporant as the others. im using datagrid and i was wondering if there is something better looking like the grid in excel for instance? like i said not as important.
thanks
hey guys. was wondering how to go about make a couple of things properly. first off i have 4 tables in a ms sql db that i need to connect. i noticed that there is 2 ways to go about this. 1st i can make a connection class with adapter and data set for each table. or i can make one class with one connection and use multiple adapters and datasets with that 1 connection instead of having 4 class'. which is better to do?
now for editing a row in my table. is there a way i can have the user just select the row from the datagrid and make an edit button which will then open up an edit form? if so how can i go about doing this, or which is a better way.
and 1 more thing but is not as imporant as the others. im using datagrid and i was wondering if there is something better looking like the grid in excel for instance? like i said not as important.
thanks