Hi
I am using Ultragrid and it has ultracombo as the one of the column.I want to show some nulltext for the ultracombo when it is in edit mode I have already set the nulltext of ultracombo. But it is not reflecting in grid
ThanksNarinder
Hi Narinder,
Then what you need to do is set the UseEditorMaskSettings property on the column to true. Then use the InitializeRow event to set the EditorControl property on the cell to an instance of an UltraMaskEdit control that has the mask settings you want. You can use the same control for multiple cells that have the same mask rather than creating a new control for each cell.
Hi Mike,
Thanks for your valuable inputs.
I know that I can use the grid masking properties, but for some other reason and to maintain consistency I have used ultra masked edit. Acually column has to change its editor controls based upon values of first column. That's why
Thanks again.
Regards.
Narinder
If you assign an UltraMaskedEdit control to a grid column or cell, it behaves the same way by default. The grid will not pick up the mask from the editor. The grid column already has Mask properties on it, so using an editor for this purpose is inefficient.
However, in the case of the masking, a property was added to the grid column called UseEditorMaskSettings, which will allow the grid to use the editors masking instead of it's own.
Yes, Mike you are right, nulltext property of grid also doessn't work grid column is in edit mode.
I agree that ultracombo only provide its editor control to the grid. But within same grid, I am also using ultramaskededit in one column and I am providing input mask for same and it is working fine. I think the behaviour should be same here also??
No, this will not work. The grid does not actually use the Control you specify. The UltraCombo simply provides a copy of it's own editor for use by the grid.
I'm pretty sure there's a NullText property on the grid column. But I don't think it displays when the cell is in edit mode.