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.
Hello Liat,
Thank you for your post. I have been looking into it and I can suggest you see this forum threads:
https://www.infragistics.com/community/forums/f/retired-products-and-controls/66509/validation-in-xamgrid
and
https://www.infragistics.com/community/forums/f/retired-products-and-controls/55408/xamgrid-cell-s-data-validation
where it is discussed how to validate the data in the XamGrid’s Cells. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.