Al Programming
Free source code programming in C#, VB.Net, Java, SQL
Search This Blog
Wednesday, December 11, 2013
Delete row from DataTable using LINQ VB.NET example
VB.NET
> DataTable >
Delete row with LINQ
Here is an example of deleting row from DataTable (dt) supposing you want to delete the row with id 1.
Dim
row
As
DataRow
= dt.AsEnumerable().SingleOrDefault(
Function
(r) r(0) = 1)
If
Not
row
Is
Nothing
Then
row.Delete()
End
If
Newer Post
Older Post
Home