Ejemplo n.º 1
0
        public override void Assign(RepositoryItem item)
        {
            base.Assign(item);
            RepositoryItemGraphicsEdit source = item as RepositoryItemGraphicsEdit;

            if (source != null)
            {
                images = source.images;
            }
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            DataTable dt = FillDataTable();

            gridControl1.DataSource = dt;

            RepositoryItemGraphicsEdit repItemGraphicsEdit = new RepositoryItemGraphicsEdit();

            repItemGraphicsEdit.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Squeeze;

            gridControl1.RepositoryItems.Add(repItemGraphicsEdit);
            gridView1.Columns["Image"].ColumnEdit = repItemGraphicsEdit;

            gridControl2.DataSource = dt;
        }
Ejemplo n.º 3
0
 static GraphicsEdit()
 {
     RepositoryItemGraphicsEdit.RegisterGraphicsEditor();
 }