Datatable.Select Method with multiple conditions

Select method of DataTable is used to select rows from datatable (see this post). We can have multiple Boolean conditions in select method just like we do in SQL. It some situations it can save many round trips to database.


DataRow[] SelectedRow= MyDataTable.Select("Id = 5 Or RegistrationNo=72);

Advertisements