public void LoadGrid() { myDAL objMyDal = new myDAL(); ItemGrid2.DataSource = objMyDal.intheater(); ItemGrid2.DataBind(); }
private void Setup() { _items = new List <IGridItem>(); for (int i = 0; i < 10; i++) { GridItem item = new GridItem { Content = $"Str {i}" }; _items.Add(item); } ItemGrid2.SetItems(_items); }