aychekay
Member
- Joined
- Oct 10, 2011
- Messages
- 11
- Programming Experience
- 3-5
I'd like to have an updateable DataGridView that's bound to a database-driven business object. It needs to handle all aspects of CRUD and be sortable and filterable as well.
I'm relatively new to VB.Net so I'm having trouble making sense out of the examples I have found. Most of them simply bind to an object (non-database, manually filled) and do not allow you to Add, Delete, and Edit records. Furthermore, they basically never show how you would perform sorting and filtering.
I think the biggest things I'm not understanding are:
1) How do you make the DataGridView perform additions, deletions, and edits on an object.
2) How do you program your object to handle additions, deletions, and edits. Do you just need methods that use ADO.Net, NHibernate, or Linq to SQL (or any other CRUD handling mechanism)?
3) How to make this filterable and sortable.
Is this overly difficult to do or why am I have so much trouble finding examples for this? Can anyone point me in the right direction?
I'm relatively new to VB.Net so I'm having trouble making sense out of the examples I have found. Most of them simply bind to an object (non-database, manually filled) and do not allow you to Add, Delete, and Edit records. Furthermore, they basically never show how you would perform sorting and filtering.
I think the biggest things I'm not understanding are:
1) How do you make the DataGridView perform additions, deletions, and edits on an object.
2) How do you program your object to handle additions, deletions, and edits. Do you just need methods that use ADO.Net, NHibernate, or Linq to SQL (or any other CRUD handling mechanism)?
3) How to make this filterable and sortable.
Is this overly difficult to do or why am I have so much trouble finding examples for this? Can anyone point me in the right direction?
Last edited: