The method of traversing the able is summarized, and the able is summarized.
How to traverse a able
Method 1: DataTable dt = dataSet. tables [0]; for (int I = 0; I <dt. rows. count; I ++) {string strName = dt. rows [I] ["field name"]. toString ();} Method 2: foreach (DataRow myRow in myDataSet. tables ["temp"]. rows) {var str = myRow [0]. toString ();} method 3: foeach (DataRow dr in dt. rows) {object value = dr ["ColumnsName"];} Method 4: able dt = new DataTable (); foreach (DataRow dr in dt. rows) {for (int I = 0; I <dt. columns. count; I ++) {dr [I];} Bind the DataTable to Reapter. If (dtb_xx.Rows.Count> 0) {rp_xx.DataSource = dtb_xx; rp_xx.DataBind () ;}< asp: repeater ID = "rp_xx" runat = "server"> <ItemTemplate> <tr> <td> <div> <ul class = "ListHorizontally"> <li> <div class =" TCell1 "> <% # Eval (" ID ") %> </div> </li> <div class = "TCell2"> <% # Eval ("Name ") %> </div> </li> </ul> </div> </td> </tr> </ItemTemplate> </asp: Repeater>