Home › Forums › WinForms controls › Xceed Grid for WinForms › Data type of a manually added column
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)
Never mind, I found out how:
MyGrid.Columns.Add(New Column(“Unit Price”), GetType(System.Decimal))
Imported from legacy forums. Posted by hao_jiang (had 2947 views)