This example demonstrates how to create a custom image slider and use it within the Grid control to edit cell values. The MyImageSlider
class implements
IAnyControlEdit
and inherits base functionality from the ImageSlider class.
public Form1() {
InitializeComponent();
gridControl1.DataSource = GetData(5);
ImageSliderHelper.BindImageSlider(gridControl1, "Image", imageCollection1);
}
This technique can also be applied to the WinForms TreeList control.
- Form1.cs (VB: Form1.vb)
- ImageSliderHelper.cs (VB: ImageSliderHelper.vb)
- MyImageSlider.cs (VB: MyImageSlider.vb)
(you will be redirected to DevExpress.com to submit your response)