This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi There, I have a DataTable, one of the DataColumn is Enum data type, when we doing the grouping, the grouping header is 0, 1, 2... instead of Enum value like Auto, Yes, No. The following is the example of the code:
The displaying on the DataColumn is still Auto, Yes or No, but the grouping header is 0, 1, 2. We like to keep the grouping header as Auto, Yes or No. How to fix this problem? Thanks Gordon |
|
|
Hello Gordon The group headers will have better enum support for DataTable and DataView in the next nightly build. You won't need to change anything - it will just work. Jason Fauchelle |
|
|
Hi Jason, I downloaded the Nov. 23, 2012 Nightly build. The original problem is fixed. However it crashes sometime, here is the possible reproducing steps: 1) Group a null enum column 2) then Group the enum column 3) Or reverse 1) or 2) or all kind combinations I have row header count in the DataGrid and more than one Enum DataColumn in the DataTable and the included is the screen shot on crash. Thanks Gordon |
|
|
Hello Gordon I have not been able to reproduce this and I'm not entirely certain what the reproduction steps are. I have made a change that could possibly be causing this crash which will be available in the next nightly build. If this does not resolve the issue, please let me know what you mean by a "null enum column". Some example code would be helpful. Jason Fauchelle |
|
|
Hi Jason, On my application I can reproduce it on Nov 26, 2012 version. I spent the whole morning try to build a testing project but failed to reproduce it. However, I cannot send you the application that crashes since there are too much business info in there. I am not sure what I need to do, it seemed there is nothing to do with the Enum datacolumn anymore. |
|
|
Thanks for the effort Gordon Since it has nothing to do with the enum column, I have tried another approach and have successfully reproduced and resolved the issue. This fix will be available in the next nightly build. Jason Fauchelle |
|
|
Thanks a lot Jason, I cannot wait to see the new build. By the way, How did you reproduce it? well, as long as it works you don't have to answer this. |
|
|
The key to reproducing it was to have SelectionMode=Extended and SelectionType=RowAndCell. Then group a column, and then try group a second column and it should crash as soon as you start dragging. The bug was caused by a slightly incorrect cast that was missed when adding the RowAndCell feature. |
|
|
Thanks Jason, I can reproduce it now. I never thought that 2 properties will have impact. I really appreciated what you have done on this. Gordon |
|