Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
TextColumn Validation - Dynamic Columns
posted

Hi,

I'm building the grid dynamically 

Like that        

columns.Add(new TextColumn { Key = string.Format("[{0}]", key), HeaderText = key});

My xaml Looks like:

<ig:XamGrid Name="grid" AutoGenerateColumns="false" ItemsSource="{Binding Path=DataSource}" ActiveItem="{Binding Path= SelectedItem}">
<interactivity:Interaction.Triggers>
</interactivity:EventTrigger>
<interactivity:EventTrigger EventName="Loaded">
<interactivity:InvokeCommandAction Command="{Binding InitColumnsCommand}" CommandParameter="{Binding ElementName=grid, Path=Columns}" />
</interactivity:EventTrigger>
<interactivity:EventTrigger EventName="RowExitedEditMode">
<local:InvokeDelegateCommandAction Command="{Binding SaveCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=InvokeParameter}" />
</interactivity:EventTrigger>
</interactivity:Interaction.Triggers>
<ig:XamGrid.EditingSettings>
<ig:EditingSettings AllowEditing="Row" IsEnterKeyEditingEnabled="True" />
</ig:XamGrid.EditingSettings>
</ig:XamGrid>

What I need is Column for numeric value between the range of {0-100}.

How can I achive that?

Thanks a lot.