0 1 1 1 0 0 This actually the 1 row in this i need to find how mny 0's and 1's where present in it
int noofzerors=0; int noofones = 0; for (int i = 0; i < dt.Columns.Count; i++) { if (dt.Rows[0][i].ToString() == "0") { noofzerors++; } if (dt.Rows[0][i].ToString() == "1") { noofones++; } } here you will get your result....regards :)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)