Home Forums WinForms controls Xceed Grid for WinForms Data type of a manually added column

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

    Hi,

    If I manually add a unbound column to the grid through code like this:

    MyGrid.Columns.Add(New Column(“Unit Price”))

    How do I set this column’s data type to Decimal?

    Thanks.

    Hao

    Imported from legacy forums. Posted by hao_jiang (had 1762 views)

    User (Old forums)
    Member
    Post count: 23064

    Never mind, I found out how:

    MyGrid.Columns.Add(New Column(“Unit Price”), GetType(System.Decimal))

    Thanks.

    Imported from legacy forums. Posted by hao_jiang (had 2947 views)

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