I have following datatable:
As shown in pic, there are some blank cells in this data table.
I want to remove them and show only the cells with values.
I tried following code but it didnt worked:
For i=0 to dt.Rows.count-1
For j=0 to dt.Column.count-1
if dt.rows(i).tostring()="" then
dt.rows.remove(i)
end if
next
Next
This code does not works. Please help me.
Answer in c# can also help me.