遍历DataTable中的每一行

DataTable dtUser = DBtools.GetEzidebitTransactions("W");    //查询所有已发出付款请求并且未收到处理结果的记录,其状态为‘W’

            if (dtUser != null)
            {
                foreach ( DataRow dr in dtUser.Rows)
                {
                    string sTransactionID = dr["transaction_id"].ToString();
                    string sAcctid = dr["account_id"].ToString();

                    string sInvid = dr["invoice_id"].ToString();

                 }

             }



你可能感兴趣的:(String,null)