- public static ArrayList LoadView()
- {
- DataTable dt = new DataTable();
- DataView view = new DataView(dt);
- view.RowFilter = (("Name='AD'"));
- DataTable dtcopy = view.ToTable("Selected", false, "Row1", "Row2");
- var arr = dtcopy.Rows.Cast<DataRow>().Select(r => r.ItemArray).ToArray();
- ItemList.Add(arr1);
-
- DataView view2 = new DataView(dt);
- view2.RowFilter = (("Name='ProE'"));
- DataTable dtcopy2 = view2.ToTable("Selected", false, "Row1", "Row2");
- // remove some column from datatable
- var arr2 = dtcopy2.Rows.Cast<DataRow>().Select(r => r.ItemArray).ToArray();//Convert datatable to array
- //return arr2;
- ItemList.Add(arr2);
-
- return Itemlist;
- }
Here i have two arrays in my array list.Now i want to append it in a particular array in javascript