bool flag = false; DataRow[] rows = dt.Select("Discontinue="+flag); if (rows != null) { /// //// }
bool flag = false; DataRow[] rows = dt.Select("Discontinue="+flag); if (rows != null) { for(int i=0; i < rows.Length; i++) { for(int j=0; j < rows[i].ItemArray.Length; j++) { if(rows[i].Item[j] is bool && !((bool)rows[i].Item[j])) flag = true; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)