How to delete empty rows in excel. i found vb code, i need c#

DataTableName=DataTableName.Rows.Cast(Of DataRow)().Where(Function(row) Not row.ItemArray.All(Function(field) field Is DBNull.Value Or field.Equals(""))).CopyToDataTable()

Hey!

Use filter datatable…

Mention the column and is empty ->Remove

Regards,
NaNi

1 Like

yes bro , i did it , but cant i get c#

1 Like

Hi!

Try this

Regards,
NaNi

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.