StrataFrame Forum

Get Field data type

http://forum.strataframe.net/Topic6495.aspx

By Chan - 2/1/2007

Hi,

Anyway to retrieve field data type of current control bounded to?
By Trent L. Taylor - 2/1/2007

Use reflection.  If you are referencing the control which has a field bound to it, you can get the field name from the BindingField property.  If you know this you can get the data type a number of different ways.  For example, you can reference the column within the CurrentDataTable.

MyBO.CurrentRow.Item(MyTextBox.BindingField).GetType()