vb.net - Filtering only on DataGridView items -


dv.rowfilter = string.format("name '%{0}%'", txtsearch.text) gridunpaid.datasource = dv 

i used code above filter , working fine.

here want. in data grid view item filter not on database possible?

you can filter datagridview without changing datasource using code:

ctype(gridunpaid.datasource, datatable).defaultview.rowfilter = string.format("name '%{0}%'", txtsearch.text) 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -