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
165
UltraGridColumn Format Issue
posted

I'm trying to format a column as a nice looking phone number rather than the integer...   I'm not getting anywhere with the code I have below.

<igtbl:UltraGridColumn BaseColumnName="number" IsBound="True" Key="number"

Format="(###) ###-####">

<Header Caption="Number">

<RowLayoutColumnInfo OriginX="3" />

</Header>

<Footer>

<RowLayoutColumnInfo OriginX="3" />

</Footer>

</igtbl:UltraGridColumn>

Parents
No Data
Reply
  • 7694
    posted

    Hello,

    The property Format of UltraGridColumn apply only for numbers. Please make sure your type in database is number. For code below the Format property apply normally:

    <Columns>

    <igtbl:UltraGridColumn Key="Numbers" IsBound="True" BaseColumnName="Numbers" DataType="System.Int32" Format="(###)-###-####">

    <Header Caption="Numbers">

    </Header>

    </igtbl:UltraGridColumn>

    </Columns>

    Hope this helps.

Children
No Data