Thanks Ravi Ranjan Kumar http://raviranjankr.wordpress.com
id name address anc hyd 2 bns bza 3 12s wert 4 dsfsdf 123
Thanks&Regards LakshmiNarayana Nalluri.
' The query will return only rows that have at least one Null value ' in one of the columns Dim results = From row In DataTableInstance.AsEnumerable() _ Where row.ItemArray.Any(Function(c) c Is DBNull.Value) _ select row ' Replace all the Null values with zero For Each r in results For i As Integer = 0 To r.ItemArray.Count( ) - 1 If r(i) is DBNull Then r(i) = 0 End If Next Next ' At this point DataTableInstance has no Null values in it.
Login to post response