============================
private void printDataSet(DataSet myDataSet)
{
int i = 0;
//
//you may specify the name of the table (Eg: Ds.Tables["myTableName"].Rows.Count
for (i = 0; i < myDataSet.Tables[0].Rows.Count; i++)
{
//
Console.WriteLine(myDataSet.Tables[0].Rows[i][0].ToString());
//
//myDataSet.Tables[0].Rows[i]["myFieldName"].ToString()
Console.WriteLine(myDataSet.Tables[0].Rows[i][1].ToString());
}
}
No comments:
Post a Comment