Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #12939 |

    Hi,

    is it possible to set a column in the grid to upper case?
    I want to view the cell in upper case and edit the cell in upper case, any ideas?

    Thanks.

    Imported from legacy forums. Posted by shark (had 2056 views)

    User (Old forums)
    Member
    Post count: 23064

    You need to change the cell editor to a masked edit, with the following:

    ‘ Create a masked editor.
    Dim gridMaskedTextBox As GridMaskedTextBox = New GridMaskedTextBox

    ‘ set the mask to Upper Case chars
    gridMaskedTextBox.Mask = “>”

    ‘ Set gridMaskedTextBox as the cell editor.
    GridControl1.Columns(“ComponentCode”).CellEditor = gridMaskedTextBox

    Regards,
    Bryce

    Imported from legacy forums. Posted by bryceb (had 3042 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.