DataTable crsDT = ds.Tables[0].Copy(); DataRow[] rows = new DataRow[crsDT.Rows.Count-1]; rows = crsDT.Select("column4 != 0","column3 / column4");
foreach( DataRow row in ds.Tables[0].Select("","column3 / column4") ) { int Rank = row.Item("column3") / row.Item("column4"); // Do something with row and rank? }
DataTable
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)