Search This Blog

Monday, June 3, 2013

Disable Spin Editor GridViewDecimalColumn RadGridView

Telerik > Windows Forms > > RadGridView > Disable Spin Editor


GridSpinEditor represents a spin editor in RadGridView.

Example: How to disable GridSpinEditor in RadGridView

  Private Sub RadGrid_CellEditorInitialized(sender As Object, e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles Me.CellEditorInitialized
        Dim spinEditor As GridSpinEditor = TryCast(Me.ActiveEditor, GridSpinEditor)
        If spinEditor IsNot Nothing Then
            Dim element As GridSpinEditorElement = spinEditor.EditorElement
            element.ShowUpDownButtons = False
            element.InterceptArrowKeys = False
            element.EnableMouseWheel = False
        End If
    End Sub