I need some help, I have been at this for a few days...
I have a datagridview that I am populating with an SQL JOIN with the following stored procedure...
CREATE PROCEDURE sp_company_GRIDVIEW_Iuserid_companyid@companytypenumber
Select tblcompany.CompanyName as [Company Name],
tblcompanytypes.Companytype as [Group Name],
tblcompany.phoneNumber as [Phone Number],
tblcompany.Altphone as [Alternate Phone],
tblcompany.EmailAddress as [Email Address]
From tblcompany INNER JOin tblcompanytypes ON
tblcompany.companytypeNumber = tblcompanytypes.companytypenumber
Where tblcompanytypes.IUSERID = @iuserid
And tblcompanytypes.companytypenumber = @companytypenumber
The results are successfully returned into the datagridview, and it works great,
However I would like to implement the functionality to update, insert, and delete from the datagrid.
To start with the following code, saves changes to my dataset, with the cellendedit event of the datagrid with following..
Private Sub dgcompanies_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgcompanies.CellEndEdit
If Me.PersDB01DataSet.HasChanges Then
There is a save button, that I want to update persdb01dataset to the datasource.
What is the best way to do this? I am really stuck and in need of some help.
Any help is much appreciated, thank you very much.