Janus Grid Help

hende

New member
Joined
Jun 20, 2005
Messages
3
Programming Experience
3-5
I am using a Janus grid and when creating a column I want to format a phone number to (###) ###-####

The code for creating the column is...
With m_objGridHelper
.AddGridColumn("Phone Number", FieldNames.PhoneNumber, Janus.Windows.GridEX.ColumnType.Text, Janus.Windows.GridEX.EditType.NoEdit, Janus.Windows.GridEX.FilterEditType.DropDownList, True, "", True, False)

The quotation marks that I have bold pass formatstring as string, I need to know what the format string should be in order to get the phone number formatted the way I want.
 
Ah nevermind, I figured it out... If the data type of the column is string, the FormatString property can not be used because string type does not support formatting (to be able to format a value, the type must implement IFormattable interface).

...needed to use inputmask
 
Back
Top