How to exclude or trim blank cells from datagridview using RowFilter in vb.net -


i'm trying find way delete or trim blank cells in datagridview on import. found few things online rowfilter works data source. right how i'm declaring data source

 datagridview1.datasource = ds.tables(0).defaultview 

if can give me suggestions or tell me how trim blank cells row filter appreciate it!

if don't want delete rows blank cells hide them linq:

public sub hidedatagridviewcells(byval dgv datagridview)     dim emptycells = (from cell datagridviewcell in (from row datagridviewrow in dgv.rows.cast(of datagridviewrow)() select row.cells).cast(of datagridviewcell)() trim(cell.value.tostring).equals("") select cell)     each cell datagridviewcell in emptycells         cell.owningrow.visible = false     next end sub 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -