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
Post a Comment