# How to filter data table as per the string array

**URL:** <https://forum.uipath.com/t/how-to-filter-data-table-as-per-the-string-array/230085>\
**Category:** Studio\
**Tags:** question, studio, system, activities\
**Created:** [10. Juni 2020 um 13:05 UTC](https://forum.uipath.com/t/how-to-filter-data-table-as-per-the-string-array/230085 "2020-06-10T13:05:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sapta\_619](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sapta_619/32/26675_2.png) [@sapta\_619](https://forum.uipath.com/u/sapta_619)\
**Post date:** [10. Juni 2020 um 14:58 UTC](https://forum.uipath.com/t/how-to-filter-data-table-as-per-the-string-array/230085/4 "2020-06-10T14:58:33Z")

</div>

Thanks worked fine. However i got the answer in this feed after i posted.

> [@DataTable filtering with expressions](https://forum.uipath.com/t/datatable-filtering-with-expressions/21692):
>
> Hi All, Use below code to remove empty row from the table. DataTable name-\>DataTableName Use assign activity DataTableName=DataTableName.Rows.Cast(Of DataRow)().Where(Function(row) Not row.ItemArray.All(Function(field) field Is DBNull.Value Or field.Equals(""))).CopyToDataTable() Re-usable Component pass Parameter as datatable you will get the answer. [RemoveEmptyRows.xaml](https://global.discourse-cdn.com/uipath/original/2X/1/18c0883a487d21d4e0c1031cfa692253af6718cf.xaml) (8.5 KB) Remove rows based on particular column is empty. DataTableName.Select("Convert(column3, System.String)\< \>''"…

---

_[View the full topic](https://forum.uipath.com/t/how-to-filter-data-table-as-per-the-string-array/230085)._
