c# - How to seach for JSON data in GridView -


i want search in gridview given text. have found code have written in textchanged event.

but doesn't seem work @ all.

using (webclient wc = new webclient()) {     wc.encoding = encoding.utf8;     jsondata = wc.downloadstring("http://10.10.62.104/xmoads/3.0/installationsex?_token=70ab896e-d8a3-4789-9f31-5588c93f3c5f&format=json");     var result = jsonconvert.deserializeobject<list<jsonresult>>(jsondata);     constringview.rowheadersvisible = false;     constringview.datasource = result; }  private void textsoeg_textchanged(object sender, eventargs e) {     (constringview.datasource datatable).defaultview.rowfilter =          string.format("navn '%{0}%'", textsoeg.text); } 

doing research, i've found lot includes sql databases , how search in those; however, that's not need.

any suggestions on i'm doing wrong, or possible?

the data in gridview shown correctly: screenshot


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -