/// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.gridControl1 = new DevExpress.XtraGrid.GridControl();
     this.cardView1    = new DevExpress.XtraGrid.Views.Card.CardView();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cardView1)).BeginInit();
     this.SuspendLayout();
     //
     // gridControl1
     //
     this.gridControl1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.gridControl1.Location = new System.Drawing.Point(0, 0);
     this.gridControl1.MainView = this.cardView1;
     this.gridControl1.Name     = "gridControl1";
     this.gridControl1.Size     = new System.Drawing.Size(376, 194);
     this.gridControl1.TabIndex = 0;
     this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
         this.cardView1
     });
     //
     // cardView1
     //
     this.cardView1.Appearance.FieldValue.Options.UseTextOptions = true;
     this.cardView1.Appearance.FieldValue.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
     this.cardView1.CardWidth            = 300;
     this.cardView1.GridControl          = this.gridControl1;
     this.cardView1.Name                 = "cardView1";
     this.cardView1.VertScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Auto;
     this.cardView1.MouseWheel          += new System.Windows.Forms.MouseEventHandler(this.cardView1_MouseWheel);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(376, 194);
     this.Controls.Add(this.gridControl1);
     this.Name  = "Form1";
     this.Text  = "Form1";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cardView1)).EndInit();
     this.ResumeLayout(false);
 }
Example #2
0
 private void cardView_CustomDrawCardCaption(object sender, CardCaptionCustomDrawEventArgs e)
 {
     DevExpress.XtraGrid.Views.Card.CardView view = sender as DevExpress.XtraGrid.Views.Card.CardView;
     (e.CardInfo as DevExpress.XtraGrid.Views.Card.ViewInfo.CardInfo).CaptionInfo.CardCaption = view.GetRowCellDisplayText(e.RowHandle, view.Columns["Nombre"]);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components              = new System.ComponentModel.Container();
     this.gridControl1            = new DevExpress.XtraGrid.GridControl();
     this.categoriesBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.nwindDataSet            = new HotTrack.nwindDataSet();
     this.cardView1                  = new DevExpress.XtraGrid.Views.Card.CardView();
     this.colCategoryID              = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colCategoryName            = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colDescription             = new DevExpress.XtraGrid.Columns.GridColumn();
     this.colPicture                 = new DevExpress.XtraGrid.Columns.GridColumn();
     this.repositoryItemPictureEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemPictureEdit();
     this.categoriesTableAdapter     = new HotTrack.nwindDataSetTableAdapters.CategoriesTableAdapter();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.categoriesBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.nwindDataSet)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cardView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemPictureEdit1)).BeginInit();
     this.SuspendLayout();
     //
     // gridControl1
     //
     this.gridControl1.DataSource             = this.categoriesBindingSource;
     this.gridControl1.Dock                   = System.Windows.Forms.DockStyle.Fill;
     this.gridControl1.EmbeddedNavigator.Name = "";
     this.gridControl1.Location               = new System.Drawing.Point(0, 0);
     this.gridControl1.MainView               = this.cardView1;
     this.gridControl1.Name                   = "gridControl1";
     this.gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
         this.repositoryItemPictureEdit1
     });
     this.gridControl1.Size     = new System.Drawing.Size(627, 434);
     this.gridControl1.TabIndex = 0;
     this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
         this.cardView1
     });
     this.gridControl1.MouseLeave += new System.EventHandler(this.gridControl1_MouseLeave);
     //
     // categoriesBindingSource
     //
     this.categoriesBindingSource.DataMember = "Categories";
     this.categoriesBindingSource.DataSource = this.nwindDataSet;
     //
     // nwindDataSet
     //
     this.nwindDataSet.DataSetName             = "nwindDataSet";
     this.nwindDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // cardView1
     //
     this.cardView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
         this.colCategoryID,
         this.colCategoryName,
         this.colDescription,
         this.colPicture
     });
     this.cardView1.FocusedCardTopFieldIndex = 0;
     this.cardView1.GridControl = this.gridControl1;
     this.cardView1.Name        = "cardView1";
     this.cardView1.OptionsBehavior.FieldAutoHeight = true;
     this.cardView1.VertScrollVisibility            = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Auto;
     this.cardView1.CustomDrawCardFieldValue       += new DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventHandler(this.cardView1_CustomDrawCardFieldValue);
     this.cardView1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.gridView1_MouseMove);
     //
     // colCategoryID
     //
     this.colCategoryID.Caption      = "CategoryID";
     this.colCategoryID.FieldName    = "CategoryID";
     this.colCategoryID.Name         = "colCategoryID";
     this.colCategoryID.Visible      = true;
     this.colCategoryID.VisibleIndex = 0;
     //
     // colCategoryName
     //
     this.colCategoryName.Caption      = "CategoryName";
     this.colCategoryName.FieldName    = "CategoryName";
     this.colCategoryName.Name         = "colCategoryName";
     this.colCategoryName.Visible      = true;
     this.colCategoryName.VisibleIndex = 1;
     //
     // colDescription
     //
     this.colDescription.Caption      = "Description";
     this.colDescription.FieldName    = "Description";
     this.colDescription.Name         = "colDescription";
     this.colDescription.Visible      = true;
     this.colDescription.VisibleIndex = 2;
     //
     // colPicture
     //
     this.colPicture.Caption      = "Picture";
     this.colPicture.ColumnEdit   = this.repositoryItemPictureEdit1;
     this.colPicture.FieldName    = "Picture";
     this.colPicture.Name         = "colPicture";
     this.colPicture.Visible      = true;
     this.colPicture.VisibleIndex = 3;
     //
     // repositoryItemPictureEdit1
     //
     this.repositoryItemPictureEdit1.Name = "repositoryItemPictureEdit1";
     //
     // categoriesTableAdapter
     //
     this.categoriesTableAdapter.ClearBeforeFill = true;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(627, 434);
     this.Controls.Add(this.gridControl1);
     this.Name  = "Form1";
     this.Text  = "Form1";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.categoriesBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.nwindDataSet)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cardView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemPictureEdit1)).EndInit();
     this.ResumeLayout(false);
 }