Created
July 7, 2014 05:42
-
-
Save hsinjungwu/d141d64106cb85e0e8d0 to your computer and use it in GitHub Desktop.
An Example of Use DevExpress.XtraEditors.Repository.RepositoryItemPopupContainerEdit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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