TableView - Setting data type to TableView columns
Hey all,
I'm struggling to figure out how to define a TableViewColumn to be of type Decimal instead of the default type being Text.
I'm in the section where I create a TableViewRowHeader and adding TableViewColumns to it.
I can create a new column:
Dim myTableViewColumn As New TableViewColumn
myTableViewColumn.Name = "Col1"
But when I try to set the type to this column, I get an error " Input string was not in a correct format." when trying to retrieve the table:
myTableViewColumn.DataType = XFDataType.Decimal
Is this syntax correct? I'm assuming that it's in the column definition where I should be defining the datatype but now not so sure. Hopefully someone can point me in the right direction.
As a side note, page 15 in the Table Views User Guide makes reference to a function called CreateTableViewColumn. Is this a custom function or part of the OS library. The compiler doesn't recognize this function.