Answers for "how to use datatable in c# class"

C#
0

datatable in c#

String[] arr = new String[] { "a", "b" };
            DataTable dt = new DataTable();
            dt.Columns.Add("name");
            dt.Columns.Add("other");
            dt.Rows.Add(arr);

            foreach (DataRow r in dt.Rows)
            {
                Console.WriteLine(r["name"].ToString() + " - " + r["other"].ToString());
            }
Posted by: Guest on October-19-2021
-1

datatables

datatable(m, escape = FALSE)
Posted by: Guest on January-28-2022

C# Answers by Framework

Browse Popular Code Answers by Language