My class uses a dataset and a property to "get" and "set" the rows in a SQL table called GROUPS into a class table called tblGroups. In my constructor I select the contents of the GROUPS datatable and use the "Set" code in the property to populate tblGroups as follows"
Here is the property in the class:
Private tblGroups As DataTable = New DataTable
Public Property Groups() As DataTable
Groups = tblGroups
Set(ByVal value As DataTable)
tblGroups = value
Groups = ds.Tables("Groups")
When instantiating a new class object the set code above does a fine job of loading any existing records into my tblGroups table. Now I wish to add additional records into that table. What is the best way to accomplish this?
- Do I need to create a seperate method to handle this, or should I change the existing "set" code somehow?
- If the answer is to change the "set" code, can I add additional byVal variables?
- If so, then how do I accomplish that without c
View Complete Post