The requested page is not available for the requested platform. You are viewing the content for Default platform.

Provide Custom Icons to the Field List Items

  • 2 min to read

This example demonstrates how to provide custom images to the Field List items.

using System;
using System.Windows.Forms;
using DevExpress.XtraReports.UI;
// ...

namespace FieldListCustomIcons {
    public partial class Form1 : Form {

        public Form1() {
            InitializeComponent();
            DevExpress.Data.Browsing.Design.ColumnImageProvider.Instance = new CustomColumnImageProvider();
        }

        private void button1_Click(object sender, EventArgs e) {
            XtraReport1 report = new XtraReport1();
            ReportDesignTool designTool = new ReportDesignTool(report);
            designTool.ShowDesignerDialog();
        }
    }
}

The result is shown in the following image.

field-list-custom-icons

See Also