This is a migrated thread and some comments may be shown as answers.

Require set decimal size with GridNumericColumn

1 Answer 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wayne
Top achievements
Rank 1
Wayne asked on 04 Sep 2008, 06:11 PM
Hello,

I want to ensure that all numbers entered into the datagrid's numeric column fit decimal(9,3). What is the best way of achieving this?

Thanks,
Wayne

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 08 Sep 2008, 12:08 PM
Hello Wayne,

Please check whether the following approach fits your needs:
<telerik:GridTemplateColumn> 
    <ItemTemplate> 
        ... 
    </ItemTemplate> 
    <EditItemTemplate> 
        <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" runat="server" Text='<%# Bind("UnitPrice") %>' 
            Mask="&lt;0..999999999&gt;.&lt;0..999&gt;"
        </telerik:RadMaskedTextBox> 
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Wayne
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or