Geeks With Blogs
faizan ahmad Usually the things which were not a straight Google December 2011 Entries
DataTable Delete using condition / where clause
Here is a extension method which can be used to perform the Delete operation on a DataTable just like the select i.e. using a filterExpression: using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; public static class MyExtensions { /// <summary> /// Delete row based on filterExpression /// </summary> /// <param name="dt"></param> /// <param name="filterExpression"> just like select </param> /// <returns> number of ......

Posted On Monday, December 12, 2011 5:34 PM

Copyright © faizanahmad | Powered by: GeeksWithBlogs.net