Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
543
Custom editor conflicts with cell.Style property
posted

Hi all,

I've just discovered a little bug in my code, trying to modify the style of a DateTime UltraGrid's cell. Here is the code:

 

DefaultEditorOwnerSettings dtsettings = new DefaultEditorOwnerSettings();
dtsettings.DataType = typeof(DateTime);
dtsettings.MaskInput = "dd/mm/yyyy";
DateTimeEditor dteditor = new DateTimeEditor(new DefaultEditorOwner(dtsettings));
dteditor.DataFilter = new DateEditorDataFilter();     // this is a custom filter class
cell.Editor = dteditor;
cell.Style = UltraWinGrid::ColumnStyle.DateWithSpin;    // <-- here is the bug

I've found out that the last line in my code has no effect: cell is displayed with a combo instead of a spin control. If I comment out cell.Editor assignment, the spin magically appears.

Do you know if a conflict exists between the two properties (cell.Editor vs. cell.Style)? How can I solve it? Thank you bye! Valentina

 

 

Parents Reply Children
No Data