I can't seem to get the formatting of a cell to show. I have the following code in the InitializeLayout of my wingrid.
I have tried = "##-###-###" as well as the below format string and all I ever get in the cells are the 8 numbers without formatting.
.Columns.Item("StructureNbr").CellDisplayStyle = Infragistics.Win.UltraWinGrid.CellDisplayStyle.FormattedText
.Columns.Item("StructureNbr").Format = "00-000-000"
.Columns.Item("StructureNbr").MaskInput = "nn-nnn-nnn"
.Columns("StructureNbr").MaskDataMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.Raw
So, what is my error?
I think I figured this out. the data is numeric but the column format is char, so I need to use an editor control to format the text since it is not stored in a number type field on the database.
Chuck
here is the link of the devcenter article that gave me the answer I needed.
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=1744
basically I need to set maskInput for the wingrid column.