I have a 200 rows in my datatable which there are a lot with “” (string.empty) values, so I need to remove them from my datatable before data biding.
I don’t know how to data binding an array
My datalist:
<asp:DataList
id="list1"
runat="server">
<ItemTemplate>
<cc1:SWCLabel
runat="server"
Text ='<%# Eval("myfield1")%>'
/>
</ItemTemplate>
</asp:DataList>
// My code behind
DataView view = dt3.DefaultView;
DataRow[] rows = dt3.Select("myfield1 <> ''");
... // Something here
Plese, assist me with non linq solutions since I’m not capable to undertand it at the moment.
Thank you!!
You can use
Linq: