[DX Support team: this thread was cloned from ASPxGridView - How to determine a data type of GridViewDataColumn at runtime]
This only works if the grid has at least one data row.
If you, like us, send in a dataset with an empty model, the value will be null.
Is there anyway around this?