-
Mar 10th, 2013, 12:30 PM
#1
Thread Starter
Addicted Member
vb.net: editing, saving, updating and deleting on the same form
HI
I am a developing a vb.net project. Some of the forms will need the client to ‘delete, save, update and edit, should I do all this in one form or create different forms? Please what would be the best way to handle this without having too many buttons on the same form and confusing issues?
Thanks for your time
-
Mar 10th, 2013, 12:38 PM
#2
Re: vb.net: editing, saving, updating and deleting on the same form
Have you ever actually used a Windows program. How does Notepad handle it, for example?
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Mar 10th, 2013, 12:43 PM
#3
Re: vb.net: editing, saving, updating and deleting on the same form
If it were me, I would search by record, bind data to a datagridview then allow the update/delete options. Pretty much your update/save option would do the same thing, so I dont think there would be a need for two distinct ones.
Assuming you are dealing with a database/datatable:
Find Record = Perform a Query and bind data into the dataviewgrid.
Update = Update edited values in the datagrid to the Database (will require a primary key to be pulled, and if youd like, hidden)
Delete = Perform a deletion on the data based on your query
If all you are doing is performing queries to edit types of data, you could also add a combobox and function to determine the query, then your FIND button will do select-case based on your combobox value
Just a couple ideas that came to mind first
-
Mar 11th, 2013, 01:20 AM
#4
Thread Starter
Addicted Member
Re: vb.net: editing, saving, updating and deleting on the same form
Thank you very much, it is very helpful
-
Mar 11th, 2013, 01:58 AM
#5
Thread Starter
Addicted Member
Re: vb.net: editing, saving, updating and deleting on the same form
@Dunfiddle, Fortunately I have never ever actually used a window program. I Appreciate your effort.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|