|
-
Feb 10th, 2003, 03:26 AM
#1
Thread Starter
Addicted Member
-
Feb 10th, 2003, 03:39 AM
#2
Registered User
Try something like this....
Code:
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
-
Feb 10th, 2003, 07:04 AM
#3
Thread Starter
Addicted Member
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.
-
Feb 10th, 2003, 11:27 AM
#4
Registered User
It deletes the dr array yes, and that array according to the select methos should contain the rows (probably just 1) with the conndetails_Code equal to 25. Is that not what you intended?
-
Feb 10th, 2003, 04:56 PM
#5
Thread Starter
Addicted Member
hi there athely
i hope lots of people should be like you - (willing to help)
i ment to delete a row from the dataset table not to create empty row and to init it with the row which refers to my key and then to delete the row i mention that i want to find the row by ******* key that i have in the dataset table abd then to delete it!!! directly in the dataset!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|