This question is locked. New answers and comments are not allowed.
Hi all,
I wanted to know why when I use celledittemplates within nullable types I can't change a value to a blank one and then validate it.
Here is an example :
The Age property type is Integer? so I should be able to delete the Age value from the cell edit template and then validate the row. This cell should display a blank cell but the old value is still here.
Could you please help me to figure why there is this problem please ?
Thanks
Regards
Steeve
I wanted to know why when I use celledittemplates within nullable types I can't change a value to a blank one and then validate it.
Here is an example :
<telerik:GridViewDataColumn Header="DataColumn avec templates" DataMemberBinding="{Binding Age}"> <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <TextBlock Text="{Binding Age}" /> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> <telerik:GridViewDataColumn.CellEditTemplate> <DataTemplate> <TextBox Text="{Binding Age, Mode=TwoWay}" /> </DataTemplate> </telerik:GridViewDataColumn.CellEditTemplate> </telerik:GridViewDataColumn>The Age property type is Integer? so I should be able to delete the Age value from the cell edit template and then validate the row. This cell should display a blank cell but the old value is still here.
Could you please help me to figure why there is this problem please ?
Thanks
Regards
Steeve