dic = dt.Rows.Cast<DataRow>().ToDictionary( x => Convert.ToInt32(x["Key"]), x => Convert.ToInt32(x["Value"]));