Home Forums WinForms controls Xceed Grid for WinForms DateTime? as DataType slow down the grid Reply To: DateTime? as DataType slow down the grid

User (Old forums)
Post count: 23064

Hi Martin,

We forgot to consider a thing or two. 

Writing a variable of type DateTime to memory will always be much slower than writing a string since a string can be stored/retrieved directly while a DateType needs to be converted AND boxed as an object.  Reading back a DateTime variable requires 1) unboxing of the object which contains the DateTime structure.  2) conversion of the DateTime variable into something viewable in a given format.

Best regards,

Imported from legacy forums. Posted by Ghislain (had 1651 views)