public DataGridPage() { InitializeComponent(); NavigationPage.SetHasNavigationBar(this, true); viewModel = new DataGridViewModel(); BindingContext = viewModel; var list = DataSource.GetOrders(); var headerList = GetHeader(list); GridView grid = new GridView() { NumColumns = 1, ScrollToEnd = true, ColumnSpacing = 0, RowSpacing = 1 }; slView.Children.Add(new DataGridHeaderView(headerList).getRootView()); slView.Children.Add(grid); adapter = new DataGridAdapter(list); grid.ItemTapped += Handle_TapEvent; grid.ItemSource = adapter; //viewModel.IsVisible = true; }
public void DataGridAdapterFiles_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e) { CmsWebDirectory d = CmsContext.Current.RootDirectory; DataGridAdapterFiles.DataSource = d.FindDeletedFiles(); }
public void DataGridAdapterFiles_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e) { CmsHttpContext.Current.Mode = CmsMode.Unpublished; DataGridAdapterFiles.DataSource = CmsFile.FindByDirectoryID(CurrentDirectory.ID, true); }
/// <summary> /// Initializes a new adapter with given properties. /// </summary> public void InitAdapter(IDbConnection conn, IDbDataAdapter da, DbCommandBuilder builder) { Adapter = new DataGridAdapter(this, conn, da, builder); }
public void DataGridAdapterFiles_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e) { CmsWebDirectory d = CmsContext.Current.RootDirectory; DataGridAdapterFiles.DataSource = d.SearchFiles(TextBoxText.Text); }
public void DataGridAdapterResources_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e) { DataGridAdapterResources.DataSource = CmsResource.FindAll(); }
public void DataGridAdapterFiles_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e) { DataGridAdapterFiles.DataSource = CmsFile.FindByDirectoryID(CurrentDirectory.ID, true); }
protected void DataGridAdapterUsers_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e) { DataGridAdapterUsers.DataSource = Membership.GetAllUsers(); }
public void DataGridAdapterAuditLog_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e) { DataGridAdapterAuditLog.DataSource = LogEntry.FindByUser(UserID, 30); DataGridAdapterAuditLog.DataBind(); }
public void DataGridAdapterPermissions_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e) { DataGridAdapterPermissions.DataSource = Permissions.FindAllPermissions(); }