c# - Matching cell in rows with an input string -


i trying read excel file , find id number in file. right printing of rows match , figuring out why.

// input search string value = textbox3.text; // verify input correct format match match = regex.match(value, @".*[0-9].*"); match mymatch = regex.match(value, textbox3.text); console.writeline(value);  foreach (datarow row in xlsds.rows) {                      if (match.success && mymatch.success)     {         console.writeline(textbox3);         console.write(row.itemarray.tostring());         console.writeline("this found");     } } 

int rowcount = xlsds.rows.count; 

Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -