Exemple #1
0
 protected override void OnDraw(Graphics g, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
 {
     if (this.ShouldDrawFocused(rowIndex, colIndex))
     {
         style.Control = editSlider;
     }
     else
     {
         style.Control = drawSlider;
         SliderCellModel.InitializeSlider(drawSlider, style);
     }
     base.OnDraw(g, clientRectangle, rowIndex, colIndex, style);
 }
Exemple #2
0
 protected override void InitializeControlText(object controlValue)
 {
     SliderCellModel.InitializeSlider(this.editSlider, controlValue);
 }
Exemple #3
0
 protected override void OnInitialize(int rowIndex, int colIndex)
 {
     SliderCellModel.InitializeSlider(editSlider, Grid.GetViewStyleInfo(rowIndex, colIndex));
 }