G
Guest
I'm working on a small, single user .net 2005 windows application in c#
connecting to SQL Express. I'm trying to learn Typed DataSets, DataTables,
DataAdapters, etc. What I need to figure out is a reasonable approach
(doesn't have to be totally academic) to dealing with data. In other words,
how do I store it, display it and manipulate it?
Right now I have created a global DataSet with some TableTables and am
Filling this structure on program startup.
I'm using a freeware custom tree/list control that doesn't seem to support
databinding so I'm loading it up manually from the global DataTable. So far
"ok".
Now I want to be able to add and remove rows and also edit rows.
As an example, say I have a sub form for editing an existing row. Dragging
Columns onto the form creates a BindingSource, a TableAdapter and a DataSet.
I already have two of these in the global structure. Should I be removing
these and trying to bind to them instead in the sub form? Or, do I want to
create local copies for manipulation? But then how would I sync the results
to the global objects? If I do use the global objects, how do I keep the list
in sync with edits, for example?
I guess I'm looking for a "pattern" on housing and connecting to data,
manipulating it throughout the application. I'm hoping to start easy, rather
than jumping into something complicated like MVC.
Thank you for any assistance.
connecting to SQL Express. I'm trying to learn Typed DataSets, DataTables,
DataAdapters, etc. What I need to figure out is a reasonable approach
(doesn't have to be totally academic) to dealing with data. In other words,
how do I store it, display it and manipulate it?
Right now I have created a global DataSet with some TableTables and am
Filling this structure on program startup.
I'm using a freeware custom tree/list control that doesn't seem to support
databinding so I'm loading it up manually from the global DataTable. So far
"ok".
Now I want to be able to add and remove rows and also edit rows.
As an example, say I have a sub form for editing an existing row. Dragging
Columns onto the form creates a BindingSource, a TableAdapter and a DataSet.
I already have two of these in the global structure. Should I be removing
these and trying to bind to them instead in the sub form? Or, do I want to
create local copies for manipulation? But then how would I sync the results
to the global objects? If I do use the global objects, how do I keep the list
in sync with edits, for example?
I guess I'm looking for a "pattern" on housing and connecting to data,
manipulating it throughout the application. I'm hoping to start easy, rather
than jumping into something complicated like MVC.
Thank you for any assistance.