Set default value for new GridViewDataColumn

1 posts, 0 answers
  1. tomsky
    tomsky avatar
    10 posts
    Member since:
    Jan 2013

    Posted 02 Aug 2013 Link to this post


    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"/>

Back to Top