Hi,
I am trying to use masking for my phone numbers.The data type for the column is a string.Now my question is this.When the user does not type in to the cell,I dont want the mask enabled.The cell should be empty.When the user types into the cell,the cell should display the formatting mask and retain the mask when the user moves out.
Please reply
Thanks
I'm still not sure I understand. You are saying that cells with no dataare displaying masked? Do you mean that you see the underscores and dashes in the cell when it is not in edit mode?
I'm not sure the cell can have different masks when it has or does not have a value. I know of no way to do that, except maybe to use a DrawFilter and draw the text yourself.
If there is a way to do what you want, then it would have to be via one of the mask properties like MaskDisplayMode on the column.
Here is what happens.
When I apply the mask for the cell,all the cells in the phone number column gets the mask whether there is data or not.I want to apply mask for cells that have data in them or when the user types in a phone number.
This is not the behaviour I see.
I'm not sure I understand the question. What you are describing here sounds like the default behavior to me. Which part of this are you unable to acheive?