Skip to content

Instantly share code, notes, and snippets.

@hsinjungwu
Created July 7, 2014 05:42
Show Gist options
  • Save hsinjungwu/d141d64106cb85e0e8d0 to your computer and use it in GitHub Desktop.
Save hsinjungwu/d141d64106cb85e0e8d0 to your computer and use it in GitHub Desktop.
An Example of Use DevExpress.XtraEditors.Repository.RepositoryItemPopupContainerEdit
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Repository;
using DevExpress.XtraGrid;
using DevExpress.XtraGrid.Columns;
using DevExpress.XtraGrid.Views.Grid;
RepositoryItemPopupContainerEdit ripce = new RepositoryItemPopupContainerEdit();
GridControl gc = new GridControl();
GridView gv = new GridView();
gc.MainView = gv;
gc.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gv });
DataTable dt = MyFuncGetTable();
gc.DataSource = dt;
gc.UseEmbeddedNavigator = true;
gc.EmbeddedNavigator.Buttons.Append.Visible = false;
PopupContainerControl pcc = new PopupContainerControl();
gc.Dock = DockStyle.Fill;
pcc.Controls.Add(gc);
ripce.PopupControl = pcc;
pcc.VerticalScroll.Visible = false;
//GridColumn myGridCol
myGridCol.ColumnEdit = ripce;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment