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

[Solved] Can't edit a GridViewMaskedTextBoxColumn

1 Answer 98 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex Wu
Top achievements
Rank 1
Alex Wu asked on 30 Dec 2009, 02:07 AM
I have a GridViewMaskedTextBoxColumn  column
<telerikGrid:GridViewMaskedTextBoxColumn Mask="#####" DataMemberBinding="{Binding Zip, Mode=TwoWay}"></telerikGrid:GridViewMaskedTextBoxColumn>

The GridViewMaskedTextBoxColumn doesn't let me type anything when the column type is set to numeric or int in the database. If I change it to varchar type in db then it works. Am I missing something?


1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvyatko
Telerik team
answered on 30 Dec 2009, 12:47 PM
Hello Alex Wu,

You need to modify the XAML Code as follows:

<grid:GridViewMaskedTextBoxColumn Mask="#####" MaskType="Standard"  DataMemberBinding="{Binding Zip, Mode=TwoWay}"></grid:GridViewMaskedTextBoxColumn>

Attached you will find an example demonstrating how the change above works.

Please let me know if this works for you.

Best wishes,
Tsvyatko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Alex Wu
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or