Custom ToDump works in Rich Text but not Data Grids?
Options
I have a class for which I have implemented a custom

This feels like a bug. Is there a fix or workaround to this?
I have also uploaded the query to Instant Share. Press Ctrl+Shift+T to enter Rich Text mode, then F5 to run the query and you should see a sequence of hundred numbers display display. Ctrl+Shift+G to enter Data Grids mode, then F5 to run the query again this time you should see something similar to the image above.
ToDump
that returns a sequence of integers, an IEnumerable<int>
. In Rich Text mode, the returned sequence is iterated and rendered as one would imagine, but in Data Grids mode, it dumps the sequence object instead of iterating its elements:
This feels like a bug. Is there a fix or workaround to this?
I have also uploaded the query to Instant Share. Press Ctrl+Shift+T to enter Rich Text mode, then F5 to run the query and you should see a sequence of hundred numbers display display. Ctrl+Shift+G to enter Data Grids mode, then F5 to run the query again this time you should see something similar to the image above.
Comments
-
ToDump isn't designed to work with data grids. Fixing this would require introducing another method, perhaps ToGridDump, because ToDump can return Util.RawHtml or a WPF control.
-
Any chance of getting that fix in an upcoming minor version?JoeAlbahari said:Fixing this would require introducing another method, perhaps ToGridDump, …