Hello,
I have a probleme deleting rows from a dataset, now i looked on the internet to solve this problem but i cant find a solution.
the problem is
i have a form where i load a dataset, then i put this dataset in a dataview(for easy filtering). and then i show it to the users. Now i want to delete a item from the dataview/dataset(and with a update from the server). Now i use a inner join to fill the dataset(table) and the dataview,because i need it in the dataview, so i cant delete from here.
this is why i load a second table in it, which contains the data i want to delete(just a straight on select * from table)
now my idea was to select the primary key. and then look for the primary key in the dataset. and when i found the primary key i delete the row containing it.
but i tried a lot of coding doing this and nothing seems to work,
does anyone have a solutions for this
Many thanks in advance,
MZ
I have a probleme deleting rows from a dataset, now i looked on the internet to solve this problem but i cant find a solution.
the problem is
i have a form where i load a dataset, then i put this dataset in a dataview(for easy filtering). and then i show it to the users. Now i want to delete a item from the dataview/dataset(and with a update from the server). Now i use a inner join to fill the dataset(table) and the dataview,because i need it in the dataview, so i cant delete from here.
this is why i load a second table in it, which contains the data i want to delete(just a straight on select * from table)
now my idea was to select the primary key. and then look for the primary key in the dataset. and when i found the primary key i delete the row containing it.
but i tried a lot of coding doing this and nothing seems to work,
does anyone have a solutions for this
Many thanks in advance,
MZ