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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -