Hello,
I need help (again) with the RadGridview please.
PROBLEM :
I use a RadGridView to display some informations. And one column have a Binding with an Integer attribute.
When I edit a row, and put a value which is not a number in the cell, my application crash (normal).
I tried to use GridViewMaskedTextBoxColumn with MaskType="Numeric" but it doesn't work or I does not succeed in using it.
CODE :
I have a gridview with an ObservableCollection as ItemSource :
In my RoleUtilisateur class (implements IRoleUtilisateur) I have an Integer :
XAML :
(I deleted all columns except the one with the Binding with Integer attribute)
INFOS :
Visual Studio 2008
.NET Framework 3.5 SP1
Telerik 2010.1.603
How can I do to avoid crashing please ?
If you need more informations, please tell me.
Thank you in advance for your answer.
Regards,
G.B.
I need help (again) with the RadGridview please.
PROBLEM :
I use a RadGridView to display some informations. And one column have a Binding with an Integer attribute.
When I edit a row, and put a value which is not a number in the cell, my application crash (normal).
I tried to use GridViewMaskedTextBoxColumn with MaskType="Numeric" but it doesn't work or I does not succeed in using it.
CODE :
I have a gridview with an ObservableCollection as ItemSource :
| private ObservableCollection<IRoleUtilisateur> _userRole; |
| public ObservableCollection<IRoleUtilisateur> ListUserRole |
| { |
| get { return _userRole; } |
| set |
| { |
| _userRole = value; |
| OnPropertyChanged("ListUserRole"); |
| } |
| } |
In my RoleUtilisateur class (implements IRoleUtilisateur) I have an Integer :
| private int _rang; |
| public int Rang |
| { |
| get |
| { |
| return _rang; |
| } |
| set |
| { |
| _rang = value; |
| } |
| } |
XAML :
| <telerik:RadGridView.Columns> |
| <telerik:GridViewDataColumn Header="{Loc rank}" DataMemberBinding="{Binding Rang}" /> |
| </telerik:RadGridView.Columns> |
INFOS :
Visual Studio 2008
.NET Framework 3.5 SP1
Telerik 2010.1.603
How can I do to avoid crashing please ?
If you need more informations, please tell me.
Thank you in advance for your answer.
Regards,
G.B.