delete row in dataset by having the key
ill appreciate any help - as you can see im little bit desperate!
so ill try to clarify my self as better as i can
i have
*********dataset*************
dscomapanies1
************table************
dscompanies1.T_ConnectionDetails
************1st col of the table -> primary key*********
the name of the primary key col is
conndetails_Code
so.....
i have a key as integer - let assume 25. i need to know how to find it in the table and to delete it
any help will be more then appreciated
:confused: :confused: :confused: :confused: :confused:
deleteing row from dataset
Dim dr() As DataRow = dscompanies1.T_ConnectionDetails.Select("conndetails_Code = 25")
Dim r As DataRow
For Each r In dr
dscompanies1.T_ConnectionDetails.Rows.Remove(r)
Next
i think ir deletes the dr array no? not the approprate row in the dataset - as long as i tested the code.