Click here to Skip to main content
15,902,634 members

Comments by Kraule (Top 2 by date)

Kraule 23-Jan-20 10:54am View    
Change the foreach-clause to:
for (int i = 0; i < dtMaster.Rows.Count-1; i++)
Kraule 24-Dec-18 8:41am View    
A little change to Solution2:

StringBuilder sqlcommand = "SELECT * FROM tabl1 WHERE 1=1 ";
if (!string.IsNullOrEmpty(CBgender.Text))
{
sqlcommand.Append(" and GENDER LIKE '%");
sqlcommand.Append(CBgender.Text);
sqlcommand.Append("%'");
}
// repeat for other textbox fields