Delete field type is not supported controls from a DataTable

Dt = DB.GetDataTable the DataTable (SQL);
           
            // dt is not removed from the control field types supported
            for (int I = 0; I <dt.Columns.Count; I ++)
            {
                the Type TP = dt.Columns [I] .datatype;
                IF (TP == typeof (Byte []))
                {
                    dt.Columns.RemoveAt (I);
                    i--;
                }
            }
           
            DB.DvBind (dvContent, dt,. 1, to true);

Guess you like

Origin www.cnblogs.com/mol1995/p/11010107.html