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

Set default value for new GridViewDataColumn

0 Answers 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
tomsky
Top achievements
Rank 1
tomsky asked on 02 Aug 2013, 12:57 PM
Hi,

I have a Silverlight RadGridView controller with multiple GridViewDataColumns. When the user inserts a new row, some of the values get populated with defaults. The thing is, I want to override the default values with a blank string or the value of 0 for numeric fields. What's the best way to set default values for some of those columns?

<telerik:GridViewDataColumn DataMemberBinding="{Binding Length, Mode=TwoWay}" DataFormatString="{}{0:f2}" Header="Length"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Width, Mode=TwoWay}" DataFormatString="{}{0:f2}" Header="Width"/>

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
tomsky
Top achievements
Rank 1
Share this question
or