Hi
I have a database with a company and a persons table. The person table has an FK to the CompanyID in the company table.
A person can be connected to a company (or not)
In my company grid, I have a separate grid (not a detailsgrid!) in a nested template
On expand, the template is shown and the connected persons grid is shown
For the persons grid on the nested template I have an ordinary RADGrid and I have a delete column and i replaced the text with an image. But for the delete function actualy I need to have two types of delete
option 1 deletes the complete person in the person table (normal delete function in the grid)
option 2 clears only the FK to the company and makes it a stand alone person, not connected to a company
I was considering a second delete column with a imagebutton which click event I can catch directly in VB code behind but I don't know how to.
Anyone an idea how to approach this?
I have a database with a company and a persons table. The person table has an FK to the CompanyID in the company table.
A person can be connected to a company (or not)
In my company grid, I have a separate grid (not a detailsgrid!) in a nested template
On expand, the template is shown and the connected persons grid is shown
For the persons grid on the nested template I have an ordinary RADGrid and I have a delete column and i replaced the text with an image. But for the delete function actualy I need to have two types of delete
option 1 deletes the complete person in the person table (normal delete function in the grid)
option 2 clears only the FK to the company and makes it a stand alone person, not connected to a company
I was considering a second delete column with a imagebutton which click event I can catch directly in VB code behind but I don't know how to.
Anyone an idea how to approach this?