1 つのデータセットと 4 つのデータブルがありました。では、これらのデータ テーブルの各行をカウントするにはどうすればよいでしょうか。
DataTable[] ret = 
{
    new DataTable(), 
    new DataTable(), 
    new DataTable(), 
    new DataTable()
};
for (int i = 0; i < 4; i++)
{
    DataTable table = new DataTable();
    table.Columns.Add("Delivery Date", typeof (string));
    table.Columns.Add("Ord.Qty", typeof (string));
    table.Columns.Add("Balance", typeof (string));
    ret[i] = table;
}
この 1 は、4 つのデータ テーブルの合計行を計算します。
int rowCount = ds.Tables[0].Rows.Count;